View Single Post
  #1   Spotlight this post!  
Unread 01-21-2010, 09:19 PM
chsr chsr is offline
Registered User
FRC #2473
 
Join Date: Jan 2010
Location: Cupertino
Posts: 1
chsr is an unknown quantity at this point
2010 accelerometer

Does anyone have any sample code or any idea in general on how to get the accelerometer working?

My code is basically:
Accelerometer *accel;
accel = new Accelerometer(4);
cout << accel->GetAcceleration() << endl;


however, each time we are getting -2.057095... whether or not the accelerometer is plugged in or not...

Thanks.
Reply With Quote