Team2168 / 2014_Main_Robot

Code for the 2014 FRC season.
Other
2 stars 1 forks source link

Prevent Gyro Blocking code execution #51

Closed NotInControl closed 10 years ago

NotInControl commented 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.

jcorcoran commented 10 years ago

As part of the fix, we should ensure the gyro init method is never executed between the auto and teleoperated periods.

jcorcoran commented 10 years ago

https://github.com/Team2168/FRC2014_Main_Robot/commit/1618c46d3e801e2a6b656cda80e574034e8e5afa