mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-16 06:32:34 +00:00
Tank drive w/ bumper strafe, playing with LEDS and sensors.
This commit is contained in:
@@ -31,19 +31,19 @@ public class AssignmentOmniKinetic extends CyberarmState {
|
|||||||
|
|
||||||
if (engine.gamepad1.left_bumper) {
|
if (engine.gamepad1.left_bumper) {
|
||||||
|
|
||||||
robot.frontLeftDrive.setPower(engine.gamepad1.left_stick_y * 1);
|
robot.frontLeftDrive.setPower(1);
|
||||||
robot.frontRightDrive.setPower(engine.gamepad1.left_stick_y * -1);
|
robot.frontRightDrive.setPower(-1);
|
||||||
robot.backLeftDrive.setPower(engine.gamepad1.left_stick_y * -1);
|
robot.backLeftDrive.setPower(-1);
|
||||||
robot.backRightDrive.setPower(engine.gamepad1.left_stick_y * 1);
|
robot.backRightDrive.setPower(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine.gamepad1.right_bumper) {
|
if (engine.gamepad1.right_bumper) {
|
||||||
|
|
||||||
robot.frontLeftDrive.setPower(engine.gamepad1.right_stick_y * -1);
|
robot.frontLeftDrive.setPower(-1);
|
||||||
robot.frontRightDrive.setPower(engine.gamepad1.right_stick_y * 1);
|
robot.frontRightDrive.setPower(1);
|
||||||
robot.backLeftDrive.setPower(engine.gamepad1.right_stick_y * 1);
|
robot.backLeftDrive.setPower(1);
|
||||||
robot.backRightDrive.setPower(engine.gamepad1.right_stick_y * -1);
|
robot.backRightDrive.setPower(-1);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user