Show
Ignore:
Timestamp:
01/03/07 08:46:14 (2 years ago)
Author:
aronb
Message:

- Finish writing simple Fastrak test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/gadgeteer/test/FastrakTest.cpp

    r19734 r19737  
    1111   FastrakStandalone fastrak("/dev/ttyS0", 115200); 
    1212   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 
    1323   fastrak.init(); 
    1424   fastrak.getStationStatus(1); 
    15    fastrak.getStationStatus(2); 
    16    fastrak.getStationStatus(3); 
    17    fastrak.getStationStatus(4); 
    1825   while(true) 
    1926   { 
     
    2734      std::cout << std::endl; 
    2835   } 
    29    //fastrak.close(); 
     36   fastrak.close(); 
    3037}