View Single Post
  #12   Spotlight this post!  
Unread 30-11-2006, 16:32
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Problems with the Gyro

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.