drivepose = drivetrain.getPose();
goalState = ShooterPhysics.getShotParams(
- new Translation2d(0, 0),
FieldConstants.getHubTranslation().minus(new Translation3d(drivepose.getTranslation())),
8.0);
return cvtShot(exitVel, height);
}
+ public static TurretState getShotParams(Translation3d robotToTarget, double height) {
+ return getShotParams(new Translation2d(0, 0), robotToTarget, height);
+ }
+
public static Optional<TurretState> getConstrainedParams(Translation2d robotVelocity, Translation3d robotToTarget,
Constraints constraints) {
// establish a lower bound