strongback / strongback-java

A library for FIRST Robotics Competition robots that makes it easier to write and test your robot code.
MIT License
41 stars 38 forks source link

Autonomous doesn't switch to Teleop? #77

Closed niharmitra closed 8 years ago

niharmitra commented 8 years ago

After we run a command group in autonomous, we end up not being able to start our teleop commands unless we run killAllCommands in teleopInit(). What could be causing this, and what is the correct solution (if not killAllCommands)?

rhauch commented 8 years ago

If your command does not stop or timeout, then you will have to call the killAllCommands as you mention. Ideally, your command should finish naturally, but there's no harm in killing them. Another option is to call Strongback.restart() in teleopInit(), which kills commands and cleans up a few other things. Either way works.

IOW, this is not an issue with Strongback, but could bean issue with your particular commands.