From f46234b31149614169c5dbd7661ea6b97001526f Mon Sep 17 00:00:00 2001 From: ryanknj5 <140574269+ryanknj5@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:35:42 -0700 Subject: [PATCH] removed speaker/feeding from after transition --- src/main/java/frc/robot/arm/ArmSubsystem.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main/java/frc/robot/arm/ArmSubsystem.java b/src/main/java/frc/robot/arm/ArmSubsystem.java index 0d76ded..3b9f33e 100644 --- a/src/main/java/frc/robot/arm/ArmSubsystem.java +++ b/src/main/java/frc/robot/arm/ArmSubsystem.java @@ -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( @@ -188,6 +175,7 @@ protected void afterTransition(ArmState newState) { positionRequest.withPosition( Units.degreesToRotations(clamp(ArmAngle.PASS.getDegrees())))); } + default -> {} } }