View Single Post
  #6   Spotlight this post!  
Unread 27-01-2013, 15:27
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: Gyro not sending values?

Sorry to derail, but I had a question about the Gyro GetAngle function.


We want to incorporate the gyro that comes attached with the ADXL345 accelerometer in a Complementary filter which kinda looks like

Code:
angle = 0.98(angle + GyroAngularRateOfChange * dt) + 0.02(asin(Acceleration))
My question is whether the Gyro class already performs this integration for us in the GetAngle function (which according to the comments in the class header, it does), or if we need to find the rate of angular change ourselves with voltage readings and then do fancy things.
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote