2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00

BinRaise will now only run when held

This commit is contained in:
Austen Adler 2015-03-14 11:24:04 -04:00
parent 25e0b83d67
commit e89fb650c3

6
OI.cpp
View File

@ -37,16 +37,14 @@ OI::OI(){
//right8->WhenPressed(new BinCloseArms());
binRaise=new BinRaise(3.0);
binLower=new BinLower(2.0);
right3->WhenPressed(binLower);
right3->WhileHeld(binLower);
right3->CancelWhenPressed(binRaise);
right5->WhenPressed(binRaise);
right5->WhileHeld(binRaise);
right5->CancelWhenPressed(binLower);
// Cancel
JoystickButton *right12=new JoystickButton(rightStick, 12);
right12->CancelWhenPressed(raise);
right12->CancelWhenPressed(lower);
right12->CancelWhenPressed(binRaise);
right12->CancelWhenPressed(binLower);
// Basic motor test
CheckRobot* checkRobot=new CheckRobot();
JoystickButton *left7=new JoystickButton(leftStick, 7);