]> git.taranathan.com Git - FRC2026.git/commitdiff
Revert "remove comment"
authoriefomit <timofei.stem@gmail.com>
Mon, 13 Apr 2026 05:17:41 +0000 (22:17 -0700)
committeriefomit <timofei.stem@gmail.com>
Mon, 13 Apr 2026 05:17:41 +0000 (22:17 -0700)
This reverts commit 20edd0157ea51645b05e8ed746999d6c2c4e7f4a.

src/main/java/frc/robot/util/ShooterPhysics.java

index 11f78d3b21bc84bae3bc4d4e86c495851422e1c4..f88d3b8292a8e57e2dc55391897f5973ce8f82d3 100644 (file)
@@ -45,7 +45,16 @@ public class ShooterPhysics {
         * @return A TurretState that represents the shot the robot should take.
         */
        /* 
+       zExitVel = 6.260990336 <-- im calling this x
+       z is the hub height = 72 inches
+       (-x - sqrt(x^2 -2 gz)) / -g
+       0.83 seconds when shooting
 
+       1.28 seconds when shuttling since target is 0;
+
+       0.83 * 0.85 
+
+       */ 
        public static TurretState getShotParams(Translation2d robotVelocity, Translation3d robotToTarget,
                        double peakHeight) {
                double zExitVel = Math.sqrt(2 * peakHeight * Constants.GRAVITY_ACCELERATION);