Changeset 19737 for juggler/trunk/modules/gadgeteer/test
- Timestamp:
- 01/03/07 08:46:14 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/gadgeteer/test/FastrakTest.cpp
r19734 r19737 11 11 FastrakStandalone fastrak("/dev/ttyS0", 115200); 12 12 fastrak.open(); 13 fastrak.setUnits(Fastrak::CENTIMETERS); 14 fastrak.setHemisphere(1, Fastrak::FORWARD_HEM); 15 fastrak.setHemisphere(2, Fastrak::FORWARD_HEM); 16 fastrak.setHemisphere(3, Fastrak::FORWARD_HEM); 17 fastrak.setHemisphere(4, Fastrak::FORWARD_HEM); 18 fastrak.setStylusButtonEnabled(1, false); 19 fastrak.setStylusButtonEnabled(2, false); 20 fastrak.setStylusButtonEnabled(3, false); 21 fastrak.setStylusButtonEnabled(4, false); 22 13 23 fastrak.init(); 14 24 fastrak.getStationStatus(1); 15 fastrak.getStationStatus(2);16 fastrak.getStationStatus(3);17 fastrak.getStationStatus(4);18 25 while(true) 19 26 { … … 27 34 std::cout << std::endl; 28 35 } 29 //fastrak.close();36 fastrak.close(); 30 37 }
