|
Re: How to end an auto mode after gyro gets out of deadband
My guess is you're just doing a direct comparison to the gyro value to determine if you should run autonomous or not. You might want to have a flag that gets set to on when the gyro goes out of the deadband, but it never gets reset. Then have the autonomous only execute when that flag is off.
Could you show us the portion of code controlling autonomous from the gyro?
|