We will try
but the JavaDocs say:
Quote:
void edu.wpi.first.wpilibj.command.Command.cancel()
This will cancel the current command.
This will cancel the current command eventually. It can be called multiple times. And it can be called when the command is not running. If the command is running though, then the command will be marked as canceled and eventually removed.
A command can not be canceled if it is a part of a command group, you must cancel the command group instead.
|
In bold we are at this time! Unless just this command is canceled with in the Command Group.