Thread: Calibrate Gyro
View Single Post
  #2   Spotlight this post!  
Unread 25-01-2015, 21:21
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Calibrate Gyro

To calibrate the bias, your robot needs to be sitting still. If it is moving, then that value that will map to zero rotation, and that is not what you want.

The bias calibration takes place in Open. You can copy that code and do it at any point, or you can call Open someplace other than Begin. If you don't really want to recalibrate, but instead just orient to the field, you can simply call reset so the current orientation will return zero.

Greg McKaskle
Reply With Quote