From e82bff8e1b93ef60d80052db73827113d81e51b2 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 14 Mar 2015 11:24:04 -0400 Subject: [PATCH] BinRaise will now only run when held --- OI.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OI.cpp b/OI.cpp index f3d07f9..41b5973 100644 --- a/OI.cpp +++ b/OI.cpp @@ -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);