mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-16 11:12:35 +00:00
Slowing the right-side motors slightly
This commit is contained in:
@@ -51,8 +51,8 @@ public class TeleOPTankDriver extends CyberarmState {
|
|||||||
|
|
||||||
if (Math.abs(engine.gamepad1.left_stick_y) > 0.1) {
|
if (Math.abs(engine.gamepad1.left_stick_y) > 0.1) {
|
||||||
drivePower = engine.gamepad1.left_stick_y;
|
drivePower = engine.gamepad1.left_stick_y;
|
||||||
robot.backRightDrive.setPower(drivePower);
|
robot.backRightDrive.setPower(drivePower * 0.95);
|
||||||
robot.frontRightDrive.setPower(drivePower);
|
robot.frontRightDrive.setPower(drivePower * 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Math.abs(engine.gamepad1.right_stick_y) > 0.1) {
|
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
|
if (RobotRotation < 90 && RobotRotation < -89) {//CCW
|
||||||
drivePower = (-1 * DeltaRotation/180) - MinimalPower;
|
drivePower = (-1 * DeltaRotation/180) - MinimalPower;
|
||||||
robot.backLeftDrive.setPower(drivePower);
|
robot.backLeftDrive.setPower(drivePower);
|
||||||
robot.backRightDrive.setPower(-drivePower);
|
robot.backRightDrive.setPower(-drivePower * 0.95);
|
||||||
robot.frontLeftDrive.setPower(drivePower);
|
robot.frontLeftDrive.setPower(drivePower);
|
||||||
robot.frontRightDrive.setPower(-drivePower);
|
robot.frontRightDrive.setPower(-drivePower * 0.95);
|
||||||
}
|
}
|
||||||
if (RobotRotation > 90 || RobotRotation < -91) {//CW
|
if (RobotRotation > 90 || RobotRotation < -91) {//CW
|
||||||
drivePower = (1 * DeltaRotation/180) + MinimalPower;
|
drivePower = (1 * DeltaRotation/180) + MinimalPower;
|
||||||
|
|||||||
Reference in New Issue
Block a user