Skip to content

Commit

Permalink
Put back the stopMotors method
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTinker64 committed Sep 1, 2023
1 parent d8da279 commit 1bc4c51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/frc/robot/subsystems/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ public void setState(SwerveModuleState state) {
System.out.println("Swerve[" + m_absoluteEncoder.getChannel() + "] state " + state.toString());
}

public void stopMotors() {
m_driveMotor.set(0);
m_turningMotor.set(0);
}

@Override
public void close() throws Exception {
m_driveMotor.close();
Expand Down

0 comments on commit 1bc4c51

Please sign in to comment.