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