Quote:
|
Originally Posted by Guy_E
The value of "gyro_rate" is about 2030 while not moving. When I do rotate the gyro the value decreases or increases depending on the direction. My guess is that the gyro is somehow not calibrated or initialized well, but I don't know how to make it correct....
|
If you are using Kevin Watson's code, Get_Gyro_Angle is giving you the actual calculated angle 1800 is 180.0 degrees. He removed the decimal to help the pic process faster(it sucks at floating point stuff).
The actual gyro only outputs the angular rate but his code integrates to give you the actual angle at that point in time.
Read the "Readme" file that came with the gyro code. It should help you setup and calibrate the whole gyro.