Hi,
I think this is a straight-up technical question. How can we reassign the command that is assigned to button.whenPressed during teleop?
We tried something like :
Code:
CommandBase.oi.myPublicButton.whenPressed(new myOtherCommand())
within a command, but this does not seem to work. The button still executes the original command we had assigned to it.
Tia - mp