View Single Post
  #4   Spotlight this post!  
Unread 15-02-2013, 20:13
progal's Avatar
progal progal is offline
Programmer
AKA: Shelby
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Glen Allen
Posts: 15
progal is an unknown quantity at this point
Re: Accelerometer Code Making Robot Stop Moving

Apologies! We just edited our code to try and find values:
Code:
dsLCD->PrintfLine(DriverStationLCD::kUser_Line4, "X: %d", adxl.GetAcceleration(adxl.kAxis_X));
dsLCD->PrintfLine(DriverStationLCD::kUser_Line5, "Y: %d", adxl.GetAcceleration(adxl.kAxis_Y));
dsLCD->PrintfLine(DriverStationLCD::kUser_Line6, "Z: %d", adxl.GetAcceleration(adxl.kAxis_Z));
This gave us these values:
X: 21360244
Y: 21360244
Z: 21360244

And the values never changed. Is there a "reset" for the accelerometer? Any ideas?
__________________

C++ Programmer
Reply With Quote