View Single Post
  #1   Spotlight this post!  
Unread 21-01-2013, 19:23
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Command-based while button presed

I want to run a specific command but i only want to run it when the button is pressed but i cant find the specific function for that

Code:
            OI.controlDriver.buttonA.whenPressed(RobotMap.intakeIn);
            OI.controlDriver.buttonA.whenReleased(RobotMap.intakeIn);
            OI.controlDriver.buttonB.whileHeld(RobotMap.intakeOut);
they just continually run the command
Reply With Quote