Skip to content

Commit

Permalink
rearanged variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Merridew1 committed Dec 8, 2024
1 parent dbd97e8 commit 335d874
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/frc/robot/subsystems/drive/Drivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
public class Drivetrain extends SubsystemBase {
private DrivetrainIO io;
private DrivetrainIOInputsAutoLogged inputs = new DrivetrainIOInputsAutoLogged();
PIDController driveTrainPidController = new PIDController(Constants.PID.DriveTrain.P,
Constants.PID.DriveTrain.I, Constants.PID.DriveTrain.D);

/**
* Create Wrist Intake Subsystem
Expand All @@ -38,9 +40,5 @@ public void drive(Double lPower, double rPower) {
public Command driveCommand(CommandXboxController controller) {
return run(() -> drive(controller.getLeftY(), controller.getRightY()));
}

PIDController driveTrainPidController = new PIDController(Constants.PID.DriveTrain.P,
Constants.PID.DriveTrain.I, Constants.PID.DriveTrain.D);

}

0 comments on commit 335d874

Please sign in to comment.