]> git.taranathan.com Git - FRC2026.git/commitdiff
Update Superstructure.java
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Wed, 25 Feb 2026 22:45:24 +0000 (14:45 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Wed, 25 Feb 2026 22:45:24 +0000 (14:45 -0800)
src/main/java/frc/robot/commands/gpm/Superstructure.java

index 37d346531eff357f5c9598b09d4b506f97397d03..1ab9f939d7fdfcbfc9763af5ace303c34ba0be52 100644 (file)
@@ -116,7 +116,8 @@ public class Superstructure extends Command {
 
             goalState = ShooterPhysics.getShotParams(
                                target3d.minus(lookahead3d),
-                               2.0);
+                target == FieldConstants.getHubTranslation().toTranslation2d() ?
+                               2.0 : 3.0);
 
             timeOfFlight = goalState.timeOfFlight();
             double offsetX = turretVelocityX * timeOfFlight;