Skip to content

Commit

Permalink
Use defaults for motor configs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Jan 26, 2024
1 parent 3239617 commit 4b5864e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/stuypulse/robot/constants/Motors.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public interface Motors {
/** Classes to store all of the values a motor needs */

public interface Amper {
CANSparkMaxConfig LIFT_MOTOR = new CANSparkMaxConfig(false, IdleMode.kCoast, 80, 0.1);
CANSparkMaxConfig SCORE_MOTOR = new CANSparkMaxConfig(false, IdleMode.kBrake, 80, 0.1);
CANSparkMaxConfig LIFT_MOTOR = new CANSparkMaxConfig(false, IdleMode.kCoast);
CANSparkMaxConfig SCORE_MOTOR = new CANSparkMaxConfig(false, IdleMode.kBrake);
}

public interface Swerve {
Expand All @@ -35,7 +35,7 @@ public interface Swerve {
}

public interface Intake {
CANSparkMaxConfig MOTOR_CONFIG = new CANSparkMaxConfig(false, IdleMode.kBrake, 80, 0.1);
CANSparkMaxConfig MOTOR_CONFIG = new CANSparkMaxConfig(false, IdleMode.kBrake);
}

public interface Shooter {
Expand Down Expand Up @@ -66,7 +66,7 @@ public TalonSRXConfig(
}

public TalonSRXConfig(boolean inverted, NeutralMode neutralMode, int peakCurrentLimitAmps) {
this(inverted, neutralMode, peakCurrentLimitAmps, 0.0);
this(inverted, neutralMode, peakCurrentLimitAmps, 0.05);
}

public TalonSRXConfig(boolean inverted, NeutralMode neutralMode) {
Expand Down Expand Up @@ -99,7 +99,7 @@ public VictorSPXConfig(
}

public VictorSPXConfig(boolean inverted, NeutralMode neutralMode) {
this(inverted, neutralMode, 0.0);
this(inverted, neutralMode, 0.05);
}

public void configure(WPI_VictorSPX motor) {
Expand Down Expand Up @@ -127,7 +127,7 @@ public CANSparkMaxConfig(
}

public CANSparkMaxConfig(boolean inverted, IdleMode idleMode, int currentLimitAmps) {
this(inverted, idleMode, currentLimitAmps, 0.0);
this(inverted, idleMode, currentLimitAmps, 0.05);
}

public CANSparkMaxConfig(boolean inverted, IdleMode idleMode) {
Expand Down

0 comments on commit 4b5864e

Please sign in to comment.