|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Commands Ending Other Commands
Make them both call Requires(YourRollerSubsystem) and SetInterruptible(true) in the constructor. Wpilib will then take care of ending the running one when the other is called for you.
|
|
#2
|
||||
|
||||
|
Re: Commands Ending Other Commands
Thanks. I knew about the Requires, but I had no clue SetInterruptible was a thing. I'll add that in now.
|
|
#3
|
||||||
|
||||||
|
Re: Commands Ending Other Commands
interruptable is true by default.
|
|
#4
|
||||
|
||||
|
Re: Commands Ending Other Commands
I thought that was the case, but calling a command that requires the same subsystem doesn't interrupt the original command for us. Any clue on how to fix this?
|
|
#5
|
|||
|
|||
|
Re: Commands Ending Other Commands
Quote:
Hope this helps, Steve |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|