Skip to content

Commit

Permalink
brake the drive motor
Browse files Browse the repository at this point in the history
  • Loading branch information
bakedPotatoLord committed Dec 27, 2023
1 parent 942f933 commit 5416f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public SwerveModule(
CurrentLimits.turningMotorFree);

m_driveMotor.setInverted(driveEncoderReversed);
m_driveMotor.setIdleMode(IdleMode.kCoast);
m_turningMotor.setIdleMode(IdleMode.kCoast); // TODO: turn these back to brake
m_driveMotor.setIdleMode(IdleMode.kBrake);
m_turningMotor.setIdleMode(IdleMode.kCoast); // TODO: turn this back to brake

m_driveController.setFF(DrivePID.kFF, 0);
m_driveController.setP(DrivePID.kP, 0);
Expand Down

0 comments on commit 5416f1d

Please sign in to comment.