Slowing the left-side motors slightly

This commit is contained in:
Sodi
2022-12-03 12:05:58 -06:00
parent 2749ede3b9
commit 97b32e26e4
2 changed files with 6 additions and 6 deletions

View File

@@ -105,19 +105,19 @@ public class PhoenixBot1 {
frontLeftDrive.setDirection(DcMotorSimple.Direction.REVERSE); frontLeftDrive.setDirection(DcMotorSimple.Direction.REVERSE);
frontLeftDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); 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.setDirection(DcMotorSimple.Direction.FORWARD);
frontRightDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); 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.setDirection(DcMotorSimple.Direction.REVERSE);
backLeftDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); 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.setDirection(DcMotorSimple.Direction.FORWARD);
backRightDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER); 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); HighRiserLeft.setDirection(Servo.Direction.REVERSE);

View File

@@ -88,13 +88,13 @@ public class PhoenixTeleOPState extends CyberarmState {
} }
if (Math.abs(engine.gamepad1.left_stick_y) > 0.05) { 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.backRightDrive.setPower(drivePower);
robot.frontRightDrive.setPower(drivePower); robot.frontRightDrive.setPower(drivePower);
} }
if (Math.abs(engine.gamepad1.right_stick_y) > 0.05) { 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.backLeftDrive.setPower(drivePower);
robot.frontLeftDrive.setPower(drivePower); robot.frontLeftDrive.setPower(drivePower);
} }