Quote:
Originally Posted by axiomofdarkness
Hello,
I am trying to create a Command subclass which listens for an interrupt to cancel the command. When cancelling the command, I have tried using the Cancel() method, but it fails when the command is part of a CommandGroup. Is there a universal way to forcibly end a command from within the command itself?
EDIT: Also, can the Cancel() method be used on a CommandGroup object? If so, I could work around this issue.
|
What about listening for the interrupt and setting a variable that will finish the command during the next iteration?