From 8e2bc24f0c605f43c918e3336ca247404bff512e Mon Sep 17 00:00:00 2001 From: Reed Date: Tue, 3 Dec 2024 13:08:34 -0600 Subject: [PATCH] fixed invert --- .../java/frc/robot/subsystems/RandomMotors/RandomMotors.java | 1 + src/main/java/frc/robot/subsystems/drive/DrivetrainReal.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc/robot/subsystems/RandomMotors/RandomMotors.java b/src/main/java/frc/robot/subsystems/RandomMotors/RandomMotors.java index 52ae61d..ccfcfa7 100644 --- a/src/main/java/frc/robot/subsystems/RandomMotors/RandomMotors.java +++ b/src/main/java/frc/robot/subsystems/RandomMotors/RandomMotors.java @@ -10,6 +10,7 @@ public class RandomMotors extends SubsystemBase { public RandomMotors(RandomMotorsIO io) { this.io = io; + io.updateInputsIO(inputs); } @Override diff --git a/src/main/java/frc/robot/subsystems/drive/DrivetrainReal.java b/src/main/java/frc/robot/subsystems/drive/DrivetrainReal.java index 2428fd7..21e19b6 100644 --- a/src/main/java/frc/robot/subsystems/drive/DrivetrainReal.java +++ b/src/main/java/frc/robot/subsystems/drive/DrivetrainReal.java @@ -20,8 +20,6 @@ public class DrivetrainReal implements DrivetrainIO { public DrivetrainReal() { BLMotor.addFollower(FLMotor); BRMotor.addFollower(FRMotor); - - BLMotor.setInverted(true); } @Override @@ -38,7 +36,7 @@ public void updateInputsIO(DrivetrainIOInputs inputs) { @Override public void setDrivePowerIO(double lvolts, double rvolts) { FLMotor.set(lvolts); - FRMotor.set(rvolts); + FRMotor.set(-rvolts); } }