Thread: Gyro Sensors
View Single Post
  #5   Spotlight this post!  
Unread 22-02-2004, 07:46
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro Sensors

once a second would not be fast enough - the gyros have a bandwidth of 40 Hz - which means it can change values 40 times a second

so if you only read it once a second, you are only seeing 1 out of 40 possible outputs that it is creating each second.

If you want to integrate it to get compass heading, add the value to a integer variable in every pass (loop) of the SW - and make sure you subtract out the zero value (512 if you read it with a 10bit ADC - but you might need to see what the actual 'zero' value is by testing it on your bot).