View Single Post
  #4   Spotlight this post!  
Unread 27-08-2016, 19:46
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 255
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Cancel a command

Quote:
Originally Posted by euhlmann View Post
Does Command.cancel() work?
NOPE! Tested and since its in a cammand Group it crashed the program and sent an error to the councle. I'm not going to type it out but in a nut shell it said
Quote:
....IllegalUseOfCommandException: Can not manually cancel a command in a command group....
But storing the status in m_CancelCommand and monitoring it in isFinished did work as we want it to.
Reply With Quote