diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-20 23:22:54 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-20 23:22:54 -0500 |
commit | 53e3465bd2c0bfc749fc066f4f8a7d5b352a0557 (patch) | |
tree | 7d19ef035ef4efd1027df4ff8f5e5d2a86dead41 | |
parent | 56dc9cfc081a0ba552d3a3a4a966551e20b995c5 (diff) |
Flip the rDrive in HwRobot, not Teleop.
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2016/HwRobot.java | 2 | ||||
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2016/Teleop.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/HwRobot.java b/src/org/usfirst/frc/team4272/robot2016/HwRobot.java index 1fb47be..c0c6749 100644 --- a/src/org/usfirst/frc/team4272/robot2016/HwRobot.java +++ b/src/org/usfirst/frc/team4272/robot2016/HwRobot.java @@ -58,7 +58,7 @@ public class HwRobot { public void run(Control c) { lDriveM.pidWrite(c.lDrive); - rDriveM.pidWrite(c.rDrive); + rDriveM.pidWrite(-c.rDrive); climber.pidWrite(c.climber); camRotate.pidWrite(c.camRotate); camTilt.pidWrite(c.camTilt); diff --git a/src/org/usfirst/frc/team4272/robot2016/Teleop.java b/src/org/usfirst/frc/team4272/robot2016/Teleop.java index 05783e8..9675f65 100644 --- a/src/org/usfirst/frc/team4272/robot2016/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2016/Teleop.java @@ -36,7 +36,7 @@ public class Teleop { public Control run(Control control, HwOI oi) { /* Drive */ control.lDrive = -jsScale(oi.lStick); - control.rDrive = jsScale(oi.rStick); + control.rDrive = -jsScale(oi.rStick); if (oi.lStick.getTrigger()) { control.highGear = false; |