View Single Post
  #7   Spotlight this post!  
Unread 12-04-2008, 16:13
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Gyro problem..HELP!

Quote:
Originally Posted by zivo123 View Post
yes, we are using Kevin's original code..
Interrupts can corrupt the gyro variable.

To solve this problem, you need to make a secondary variable that holds the gyro value from the last cycle, and if your actual value changes drastically, then you will replace it with the old value and continue.

We had the same exact problem and now it is fixed.

Hope that this helped,
have a safe trip,
see you in Atlanta
__________________
-Borna Emami
Team 0x27