Skip to content

Commit

Permalink
added reset factory defaults to both lead & follower SparkMax's to gu…
Browse files Browse the repository at this point in the history
…arentee no stray settings - 2 follower errors
  • Loading branch information
carahegadorn committed Mar 7, 2024
1 parent 6a4dec5 commit 726bda7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/subsystems/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class Arm extends SubsystemBase {
private double targetPosition_deg = 0;

public Arm() {
leadMotor.restoreFactoryDefaults();
leadMotor.setIdleMode(IdleMode.kBrake);
leadMotor.setInverted(false);
leadMotor.setSmartCurrentLimit(45);
Expand All @@ -52,6 +53,7 @@ public Arm() {
leadMotor.enableSoftLimit(SoftLimitDirection.kForward, true);
leadMotor.enableSoftLimit(SoftLimitDirection.kReverse, true);

followerMotor.restoreFactoryDefaults();
followerMotor.setIdleMode(IdleMode.kBrake);
followerMotor.setSmartCurrentLimit(45);
followerMotor.setSecondaryCurrentLimit(65);
Expand Down

0 comments on commit 726bda7

Please sign in to comment.