Closed NotInControl closed 10 years ago
If the current Gyro implementation, can potentially block code execution during a reset, then we need to prevent that from happening.
Gyro should be moved to a thread, and probably passed an isMoving variable, so it only attemps to reset when the robot is stationary.
We can assume robot is stationary when drivetrain motors are zero.
As part of the fix, we should ensure the gyro init method is never executed between the auto and teleoperated periods.
https://github.com/Team2168/FRC2014_Main_Robot/commit/1618c46d3e801e2a6b656cda80e574034e8e5afa
If the current Gyro implementation, can potentially block code execution during a reset, then we need to prevent that from happening.
Gyro should be moved to a thread, and probably passed an isMoving variable, so it only attemps to reset when the robot is stationary.
We can assume robot is stationary when drivetrain motors are zero.