Tank drive w/ bumper strafe, playing with LEDS and sensors.

This commit is contained in:
Sodi
2022-09-08 19:07:04 -05:00
parent ffb138301c
commit dbfb73de50

View File

@@ -31,19 +31,19 @@ public class AssignmentOmniKinetic extends CyberarmState {
if (engine.gamepad1.left_bumper) {
robot.frontLeftDrive.setPower(engine.gamepad1.left_stick_y * 1);
robot.frontRightDrive.setPower(engine.gamepad1.left_stick_y * -1);
robot.backLeftDrive.setPower(engine.gamepad1.left_stick_y * -1);
robot.backRightDrive.setPower(engine.gamepad1.left_stick_y * 1);
robot.frontLeftDrive.setPower(1);
robot.frontRightDrive.setPower(-1);
robot.backLeftDrive.setPower(-1);
robot.backRightDrive.setPower(1);
}
if (engine.gamepad1.right_bumper) {
robot.frontLeftDrive.setPower(engine.gamepad1.right_stick_y * -1);
robot.frontRightDrive.setPower(engine.gamepad1.right_stick_y * 1);
robot.backLeftDrive.setPower(engine.gamepad1.right_stick_y * 1);
robot.backRightDrive.setPower(engine.gamepad1.right_stick_y * -1);
robot.frontLeftDrive.setPower(-1);
robot.frontRightDrive.setPower(1);
robot.backLeftDrive.setPower(1);
robot.backRightDrive.setPower(-1);
}