Updated TeleOp gamepad 2: Y button to raise up to 0.9 and dpad up to 1.0

This commit is contained in:
2022-11-05 21:43:34 -05:00
parent f5805567e7
commit 6fe37971c6

View File

@@ -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);