Skip to content

Commit

Permalink
need to tune pids next for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
24cirinom committed Feb 23, 2024
1 parent 56ab3e8 commit 3f2c222
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public static final class ArmConstants {

public static final double armConversion = 0.05; // TODO TUNE

public static final double kMaxOutput = 1.0;

// Arm PID constants
public static final double kP = 0.1; // TODO TUNE
public static final double kI = 0.0; // TODO TUNE
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/subsystems/arm/ArmIOSparkMax.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,6 @@ public void configurePID(double kP, double kI, double kD) {
pid.setI(kI, 0);
pid.setD(kD, 0);
pid.setFF(0, 0);
pid.setOutputRange(-ArmConstants.kMaxOutput, ArmConstants.kMaxOutput);
}
}

0 comments on commit 3f2c222

Please sign in to comment.