From 6fe37971c68d013e7fef9b09ce952ddd402e7adb Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Sat, 5 Nov 2022 21:43:34 -0500 Subject: [PATCH] Updated TeleOp gamepad 2: Y button to raise up to 0.9 and dpad up to 1.0 --- .../org/timecrafters/testing/states/PrototypeTeleOPState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java b/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java index 8fb0de3..29acf50 100644 --- a/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java +++ b/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java @@ -360,7 +360,7 @@ public class PrototypeTeleOPState extends CyberarmState { } if (engine.gamepad2.dpad_up) { - if (robot.HighRiserLeft.getPosition() < 0.9) { + if (robot.HighRiserLeft.getPosition() < 1.0) { if (System.currentTimeMillis() - lastStepTime >= 150) { lastStepTime = System.currentTimeMillis(); robot.HighRiserLeft.setPosition(robot.HighRiserLeft.getPosition() + 0.05); @@ -380,7 +380,7 @@ public class PrototypeTeleOPState extends CyberarmState { } if (engine.gamepad2.y) { - if (robot.HighRiserLeft.getPosition() < 0.84) { + if (robot.HighRiserLeft.getPosition() < 0.9) { if (System.currentTimeMillis() - lastStepTime >= 150) { lastStepTime = System.currentTimeMillis(); robot.HighRiserLeft.setPosition(robot.HighRiserLeft.getPosition() + 0.05);