|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: Yaw Rate Gyro Problems
sounds like you want to use the gyro as a compass?
a solid state gyro sensor tells you how fast the robot is turning, in one direction or the other. the reading you get when not turning is the 'zero' point. To figure out compass heading, create a 16 bit variable "heading" and initialize it to 32,000. On each loop of the main SW read the output of the gyro chip, add it to HEADING, and subtract the zero offset (you have been getting 536 for the zero reading) then if the bot turns one way, this running summation will go up. Turn the other way and it will go down. You will have to do some testing to see what the scaleing is for the sensor you use (what change in reading = 1 degree). |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gyroscope Code | Kevin Watson | Programming | 65 | 01-03-2008 23:46 |
| Updated: Example Gyro Interface Code | Kevin Watson | Programming | 2 | 28-03-2005 04:36 |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |
| ADXRS150 gyro yaw rate sensor | Brian M. | Electrical | 13 | 17-10-2004 02:28 |
| Yaw rate sensor (gyro for the layperson) | Kris Verdeyen | Rules/Strategy | 4 | 14-01-2002 00:41 |