View Single Post
  #2   Spotlight this post!  
Unread 12-02-2014, 12:33
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Gyro reset() troubles

Quote:
Originally Posted by pblankenbaker View Post
My understanding of the gyro is that a reset is not instantaneous. It takes a bit of time for the gryo to zero itself and during this time it is best not to move. If you changed your code to the following, you might be more likely to see a value closer to zero:
The gyro open performs a gyro calibration which takes several seconds, but is blocking. Gyro reset does not calibrate and should be quick. It's just zeroing the accumulators. I wonder if there is a synchronization issue and a tiny delay would make it work reliably.

We also never reset the gyro except at the beginning of autonomous, and track everything relative to the starting angle. It ends up being much more accurate if you ever want to come back to the starting angle.
Reply With Quote