Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed CoralJoint.java cus #26

Merged
merged 3 commits into from
Feb 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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