Skip to content

Commit

Permalink
finished elevator pid
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 8, 2024
1 parent 0df370b commit 9e3cf76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ public static class PID {

public static final double SHOOTER_FLYWHEEL_KP = 0;

public static final double ELEVATOR_KP = 2.1;
public static final double ELEVATOR_KP = 6;

public static final double SWERVE_HEADING_KP = 0.045;
public static final double SWERVE_HEADING_KD = 0.001;
}

public static class Offsets {
// these aren't used anymore because cancoders can be zeroed in phoenix tuner
// these aren't used anymore because cancoders can be zeroed in phoenix tuner
// public static final double ENCODER_FRONT_LEFT = -93;
// public static final double ENCODER_FRONT_RIGHT = -58;
// public static final double ENCODER_BACK_RIGHT = 10;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ElevatorSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ElevatorSubsystem() {

_leftMotor.getConfigurator().apply(softLimits);

_heightController.setTolerance(0.01);
_heightController.setTolerance(0.005);

SmartDashboard.putData("ELEVATOR PID", _heightController);
}
Expand Down

0 comments on commit 9e3cf76

Please sign in to comment.