From 5e4951e6d60308c39a6f0c1539cf2e793ff5f958 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 8 Apr 2017 08:35:22 -0400 Subject: revise climber controls --- src/org/usfirst/frc/team4272/robot2017/HwRobot.java | 2 +- src/org/usfirst/frc/team4272/robot2017/Teleop.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/usfirst/frc/team4272/robot2017/HwRobot.java b/src/org/usfirst/frc/team4272/robot2017/HwRobot.java index 23e5c34..2ef5dae 100644 --- a/src/org/usfirst/frc/team4272/robot2017/HwRobot.java +++ b/src/org/usfirst/frc/team4272/robot2017/HwRobot.java @@ -98,7 +98,7 @@ public class HwRobot { public void run(Control c) { lDriveM.pidWrite(-c.lDrive); rDriveM.pidWrite(c.rDrive); - climber.pidWrite(c.climber); + climber.pidWrite(Math.abs(c.climber)); shifter.set(c.highGear ? DoubleSolenoid.Value.kForward : DoubleSolenoid.Value.kReverse); ged.set(c.gedOut ? DoubleSolenoid.Value.kReverse : DoubleSolenoid.Value.kForward); diff --git a/src/org/usfirst/frc/team4272/robot2017/Teleop.java b/src/org/usfirst/frc/team4272/robot2017/Teleop.java index b55a42b..4eae31d 100644 --- a/src/org/usfirst/frc/team4272/robot2017/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2017/Teleop.java @@ -89,8 +89,8 @@ public class Teleop { /* climber */ control.climber = oi.xbox.getY(Hand.kLeft); - if (control.climber <= 0.2) { - control.climber = 0; + if (oi.xbox.getTriggerAxis(Hand.kLeft) > 0.5) { + control.climber = 0.2; } /* GED */ -- cgit v1.2.3-54-g00ecf