Skip to content

Commit

Permalink
changed CoralJoint.java cus
Browse files Browse the repository at this point in the history
  • Loading branch information
adiY666 committed Feb 22, 2025
1 parent 8cf1ffd commit 58b2d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/subsystems/CoralJoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class CoralJoint extends SmartMotorControllerGenericSubsystem {

public enum STORAGE_POSE {

INTAKE(-1), PLACEMENT(-1), RESTING(-1);
INTAKE(-1), L1(-1), L2(-1), L3(-1), RESTING(-1);

public final double neededPitch;

Expand Down Expand Up @@ -58,9 +58,9 @@ public boolean canMove(double speed) {

public void calibrateEncoderPosition() {
if (topLimit.get()) {
spark.setPosition(STORAGE_POSE.RESTING.neededPitch);
spark.setPosition(STORAGE_POSE.L3.neededPitch);
} else if (bottomLimit.get()) {
spark.setPosition(STORAGE_POSE.PLACEMENT.neededPitch);
spark.setPosition(STORAGE_POSE.RESTING.neededPitch);
}
}

Expand Down

0 comments on commit 58b2d1e

Please sign in to comment.