]> git.taranathan.com Git - FRC2026.git/commitdiff
builds now
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Tue, 24 Feb 2026 03:22:46 +0000 (19:22 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Tue, 24 Feb 2026 03:22:46 +0000 (19:22 -0800)
src/main/java/frc/robot/util/PhaseManager.java

index b63e1e9adeefa93ccb87896346f146bf046ab1d1..a62b290b0bc37c1b79a46c5f9ce4299b402f0091 100644 (file)
@@ -33,12 +33,12 @@ public class PhaseManager {
 
     private void updateCurrentState(Pose2d drivePose, Shooter shooter, Turret turret) {
         // if shooter is not trying to run -- idle
-        if (shooter.getTargetVelocityMPS() == 0.0) {
+        if (shooter.getTargetVelocity() == 0.0) {
             currentState = CurrentState.IDLE;
             return;
         }
         // if shooter velocity not ready yet -- starting up
-        if (!shooter.atTargetVelocity()) { // TODO: but then what happens when the ball goes in and the velocity dips??
+        if (!shooter.atTargetSpeed()) { // TODO: but then what happens when the ball goes in and the velocity dips??
             currentState = CurrentState.STARTING_UP;
             return;
         }