Quote:
Originally Posted by virtuald
That is incorrect.
Use the source, Luke.
As you can see from the source of SampleRobot, if you never return from the Autonomous function, OperatorControl will never be called. No magic here.
|
Yeah, I found that earlier today... if there was a way to break back out of this simply without having to constantly poll, SampleRobot would honestly be perfect. I spent a bit stewing on creating a new extension to RobotBase that would spawn killable threads for autonomous and teleop, but that would require thread.stop(), which has it's own issues. If it got killed in the middle of an i2c command, it could pick up the device it was talking to.