From 5e4d53901997bfef39e15465cdd0b66efe4da681 Mon Sep 17 00:00:00 2001 From: CrolineCrois Date: Fri, 5 Apr 2024 14:53:38 -0700 Subject: [PATCH] set current limit for drive --- .../robot/subsystems/swerve/drivemotors/VortexDriveMotor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/frc/robot/subsystems/swerve/drivemotors/VortexDriveMotor.java b/src/main/java/frc/robot/subsystems/swerve/drivemotors/VortexDriveMotor.java index b2528ea4..ead9e9f5 100644 --- a/src/main/java/frc/robot/subsystems/swerve/drivemotors/VortexDriveMotor.java +++ b/src/main/java/frc/robot/subsystems/swerve/drivemotors/VortexDriveMotor.java @@ -24,6 +24,7 @@ public class VortexDriveMotor implements SwerveDriveMotor { public VortexDriveMotor(int canID) { motor = new CANSparkFlex(canID, MotorType.kBrushless); motor.setIdleMode(IdleMode.kBrake); + motor.setSmartCurrentLimit(80); encoder = motor.getEncoder(); encoder.setVelocityConversionFactor(conversionFactor); //STUB