From 1ced01f2cf243d055c868aa779c178d4adcddfc1 Mon Sep 17 00:00:00 2001 From: Sodi Date: Tue, 29 Nov 2022 20:39:35 -0600 Subject: [PATCH] Slowing the right-side motors slightly --- .../org/timecrafters/testing/states/TeleOPTankDriver.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TeamCode/src/main/java/org/timecrafters/testing/states/TeleOPTankDriver.java b/TeamCode/src/main/java/org/timecrafters/testing/states/TeleOPTankDriver.java index 7fa2250..44e955a 100644 --- a/TeamCode/src/main/java/org/timecrafters/testing/states/TeleOPTankDriver.java +++ b/TeamCode/src/main/java/org/timecrafters/testing/states/TeleOPTankDriver.java @@ -51,8 +51,8 @@ public class TeleOPTankDriver extends CyberarmState { if (Math.abs(engine.gamepad1.left_stick_y) > 0.1) { drivePower = engine.gamepad1.left_stick_y; - robot.backRightDrive.setPower(drivePower); - robot.frontRightDrive.setPower(drivePower); + robot.backRightDrive.setPower(drivePower * 0.95); + robot.frontRightDrive.setPower(drivePower * 0.95); } if (Math.abs(engine.gamepad1.right_stick_y) > 0.1) { @@ -165,9 +165,9 @@ public class TeleOPTankDriver extends CyberarmState { if (RobotRotation < 90 && RobotRotation < -89) {//CCW drivePower = (-1 * DeltaRotation/180) - MinimalPower; robot.backLeftDrive.setPower(drivePower); - robot.backRightDrive.setPower(-drivePower); + robot.backRightDrive.setPower(-drivePower * 0.95); robot.frontLeftDrive.setPower(drivePower); - robot.frontRightDrive.setPower(-drivePower); + robot.frontRightDrive.setPower(-drivePower * 0.95); } if (RobotRotation > 90 || RobotRotation < -91) {//CW drivePower = (1 * DeltaRotation/180) + MinimalPower;