Skip to content

Commit

Permalink
removed speaker/feeding from after transition
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanknj5 committed Oct 2, 2024
1 parent 1fb59c7 commit f46234b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/main/java/frc/robot/arm/ArmSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,6 @@ protected void afterTransition(ArmState newState) {
Units.degreesToRotations(clamp(ArmAngle.SUBWOOFER.getDegrees()))));
}

case FEEDING -> {
double newAngle =
Units.degreesToRotations(clamp(feedSpotDistanceToAngle.get(distanceToFeedSpot)));
leftMotor.setControl(positionRequest.withPosition(newAngle));
rightMotor.setControl(positionRequest.withPosition(newAngle));
}
case SPEAKER_SHOT -> {
var newAngle =
Units.degreesToRotations(clamp(speakerDistanceToAngle.get(distanceToSpeaker)));

leftMotor.setControl(positionRequest.withPosition(newAngle));
rightMotor.setControl(positionRequest.withPosition(newAngle));
}
case AMP -> {
leftMotor.setControl(
positionRequest.withPosition(
Expand All @@ -188,6 +175,7 @@ protected void afterTransition(ArmState newState) {
positionRequest.withPosition(
Units.degreesToRotations(clamp(ArmAngle.PASS.getDegrees()))));
}
default -> {}
}
}

Expand Down

0 comments on commit f46234b

Please sign in to comment.