Skip to content

Commit

Permalink
smartcurrentlimits
Browse files Browse the repository at this point in the history
  • Loading branch information
rflood07 authored and TellowKrinkle committed Feb 16, 2024
1 parent 9f6eb6f commit 373a459
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/main/java/frc/robot/subsystems/IntakeSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public IntakeSubsystem() {
brush1 = new CANSparkMax(IntakeConstants.BRUSH_1_MOTOR, MotorType.kBrushless);
brush2 = new CANSparkMax(IntakeConstants.BRUSH_2_MOTOR, MotorType.kBrushless);
brush3 = new CANSparkMax(IntakeConstants.BRUSH_3_MOTOR, MotorType.kBrushless);
brush1.setSmartCurrentLimit(20, 20, 60);
brush2.setSmartCurrentLimit(20, 20, 60);
brush3.setSmartCurrentLimit(20, 20, 60);
brush1.burnFlash();
brush2.burnFlash();
brush3.burnFlash();
brush1.setIdleMode(IdleMode.kCoast);
brush2.setIdleMode(IdleMode.kCoast);
brush3.setIdleMode(IdleMode.kCoast);
Expand All @@ -40,6 +46,8 @@ public IntakeSubsystem() {
intake2.setInverted(true);
intake1.setIdleMode(IdleMode.kCoast);
intake2.setIdleMode(IdleMode.kCoast);
intake1.setSmartCurrentLimit(20, 20, 60);
intake2.setSmartCurrentLimit(20, 20, 60);
intake1.burnFlash();
intake2.burnFlash();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public ShooterSubsystem(double runSpeed) {
PIDconfigs.kP = kP;
PIDconfigs.kI = kI;
PIDconfigs.kD = kD;
PIDconfigs.kS = kFF;
PIDconfigs.kS = kFF;

SmartDashboard.putNumber("P Gain", Constants.ShooterConstants.kP);
SmartDashboard.putNumber("I Gain", Constants.ShooterConstants.kI);
Expand Down

0 comments on commit 373a459

Please sign in to comment.