View Single Post
  #1   Spotlight this post!  
Unread 12-02-2005, 01:22
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
Accelerometer Bias

I've made our own gyro/accelerometer code because I wanted to do some various things other than what Kevin Watson's code (which is excellently made) did. The gyro code works fine now, however because of the accelerometers' extreme sensitivity, I was wondering how you can make a code to remove the accelerometer bias. My code gets it between 511-512... but since it's an int it goes one way or the other... and by having it at 511... it is enough to quickly make the robot velocity appear as though it is getting negative.

Has anyone else made their own accelerometer code and found a way to fix this? Thanks!