FRC2832 / Robot_2018

FRC Team 2832's code for 2018 - FIRST PowerUp. Java for Robot control, C++ for Arduino additional functionality
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Ensuring that autonomous commands end at teleop #1

Closed TheLogicMaster closed 6 years ago

TheLogicMaster commented 6 years ago

A comment in the example code brought up the scenario in which the teleop period starts but a autonomous command is still running, which could potentially be undesirable, so my thought was to run Scheduler.getInstance().removeAll() in teleopInit(), which would remove all currently running commands, or keeping a reference to whichever command is run and manually killing it.