From 1bc4c516a1f259f6036b34739fa80b26ddf4023c Mon Sep 17 00:00:00 2001 From: MrTinker64 Date: Thu, 31 Aug 2023 18:57:20 -0700 Subject: [PATCH] Put back the stopMotors method --- src/main/java/frc/robot/subsystems/SwerveModule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/frc/robot/subsystems/SwerveModule.java b/src/main/java/frc/robot/subsystems/SwerveModule.java index 31eefe46..d6cb8451 100644 --- a/src/main/java/frc/robot/subsystems/SwerveModule.java +++ b/src/main/java/frc/robot/subsystems/SwerveModule.java @@ -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();