Log in

View Full Version : 5 second delay on gyro resetting?


joelg236
08-03-2013, 23:33
Java has a 5-sec delay when it resets the gyro (andymark) which our whole drive system is based off of (orientation to the field)

Is this really true? Can anyone verify this?

Jared Russell
08-03-2013, 23:35
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.

joelg236
08-03-2013, 23:46
That was what I thought. Thanks.