Skip to content

Commit

Permalink
set current limit for drive
Browse files Browse the repository at this point in the history
  • Loading branch information
CrolineCrois committed Apr 6, 2024
1 parent c7f7dfc commit 5e4d539
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e4d539

Please sign in to comment.