View Single Post
  #1   Spotlight this post!  
Unread 17-03-2013, 12:23
shindigo shindigo is offline
Registered User
AKA: Mike Parker
FRC #0102
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Somerville, NJ
Posts: 33
shindigo is an unknown quantity at this point
Reassigning button.whenPressed during teleop

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
Reply With Quote