diff options
Diffstat (limited to 'src/org/usfirst/frc/team4272/robot2017/Teleop.java')
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2017/Teleop.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2017/Teleop.java b/src/org/usfirst/frc/team4272/robot2017/Teleop.java index 103bd66..0b9d11f 100644 --- a/src/org/usfirst/frc/team4272/robot2017/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2017/Teleop.java @@ -73,10 +73,10 @@ public class Teleop { /* shifting */ double shiftUp = prefs.getDouble("shiftUp", 3.3*3.28); double shiftDown = prefs.getDouble("shiftDown", 2.7*3.28); - if (oi.lStick.getTrigger()) { - control.highGear = false; - } else if (oi.rStick.getTrigger()) { + if (oi.rStick.getTrigger()) { control.highGear = true; + } else if (oi.lStick.getTrigger()) { + control.highGear = false; } else { double speed = Math.abs((robot.lRate.pidGet() + robot.rRate.pidGet()) / 2); if (!control.highGear) { |