|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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);
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|