Trying to clean up and finish adding Rack Risers.

This commit is contained in:
Sodi
2022-09-20 19:07:10 -05:00
parent 26ba99afab
commit 76700cf440

View File

@@ -90,8 +90,6 @@ public class PrototypeTeleOPState extends CyberarmState {
robot.frontRightDrive.setPower(-frontRightPower);
robot.backRightDrive.setPower(backRightPower);
robot.armMotor.setPower(engine.gamepad2.left_stick_y * 0.5);
@@ -181,5 +179,19 @@ public class PrototypeTeleOPState extends CyberarmState {
// .5's are originally .13's.
}
if (engine.gamepad2.right_stick_y > 0.1) {
robot.RackRiserRight.setPosition(+ 1);
robot.RackRiserLeft.setPosition(+ 1);
}
if (engine.gamepad2.right_stick_y < -0.1) {
robot.RackRiserLeft.setPosition(- 1);
robot.RackRiserRight.setPosition(- 1);
}
}
}