From 53e3465bd2c0bfc749fc066f4f8a7d5b352a0557 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 20 Feb 2017 23:22:54 -0500 Subject: Flip the rDrive in HwRobot, not Teleop. --- src/org/usfirst/frc/team4272/robot2016/HwRobot.java | 2 +- 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; -- cgit v1.2.3-54-g00ecf