View Single Post
  #2   Spotlight this post!  
Unread 08-03-2013, 23:35
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: 5 second delay on gyro resetting?

The constructor for the WPIlib Gyro class calls a blocking init() method that has sleeps of 1 and 5 seconds (~6 seconds total). However, this method is only called upon construction of a Gyro object - NOT when simply calling the reset() method.

The constructor calibrates the gyro, while reset does not change calibration but rather sets the current angle to 0.
Reply With Quote