From 97b32e26e4b89939eb214b30ee06d7b230e8344a Mon Sep 17 00:00:00 2001 From: Sodi Date: Sat, 3 Dec 2022 12:05:58 -0600 Subject: [PATCH] Slowing the left-side motors slightly --- .../java/org/timecrafters/TeleOp/states/PhoenixBot1.java | 8 ++++---- .../timecrafters/TeleOp/states/PhoenixTeleOPState.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixBot1.java b/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixBot1.java index 3070528..4f150d1 100644 --- a/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixBot1.java +++ b/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixBot1.java @@ -105,19 +105,19 @@ public class PhoenixBot1 { frontLeftDrive.setDirection(DcMotorSimple.Direction.REVERSE); frontLeftDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); - frontLeftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER); + frontLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); frontRightDrive.setDirection(DcMotorSimple.Direction.FORWARD); frontRightDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); - frontRightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER); + frontRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); backLeftDrive.setDirection(DcMotorSimple.Direction.REVERSE); backLeftDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); - backLeftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER); + backLeftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); backRightDrive.setDirection(DcMotorSimple.Direction.FORWARD); backRightDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); - backRightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER); + backRightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER); HighRiserLeft.setDirection(Servo.Direction.REVERSE); diff --git a/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixTeleOPState.java b/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixTeleOPState.java index 5efa54b..3601721 100644 --- a/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixTeleOPState.java +++ b/TeamCode/src/main/java/org/timecrafters/TeleOp/states/PhoenixTeleOPState.java @@ -88,13 +88,13 @@ public class PhoenixTeleOPState extends CyberarmState { } if (Math.abs(engine.gamepad1.left_stick_y) > 0.05) { - drivePower = engine.gamepad1.left_stick_y * 0.35; + drivePower = engine.gamepad1.left_stick_y * 0.75; robot.backRightDrive.setPower(drivePower); robot.frontRightDrive.setPower(drivePower); } if (Math.abs(engine.gamepad1.right_stick_y) > 0.05) { - drivePower = engine.gamepad1.right_stick_y * 0.35; + drivePower = engine.gamepad1.right_stick_y * 0.75; robot.backLeftDrive.setPower(drivePower); robot.frontLeftDrive.setPower(drivePower); }