Thread: Button Command
View Single Post
  #1   Spotlight this post!  
Unread 22-02-2012, 19:04
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Button Command

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

downSwitch.whenPressed(End MoveArmDown)

What would "End" be?
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote