is there a way to end a command when you press a button. EG.
“MoveArmDown” would be a command telling the arm to go down
“End” would be the syntax to end the command
“downSwitch” would be the button
You can also do downSwitch.whileHeld(<command goes here>);
The whileHeld method will constantly call start() on the command (which means if the command stops, it will restart, but otherwise there is no difference) while the button is held, and then it will cancel the command when the button is released (so the command will die, calling its interrupt method).