Package frc.robot.shotdata
Class GeneratedLUTs
java.lang.Object
frc.robot.shotdata.GeneratedLUTs
Auto-generated lookup tables (LUTs) and fitted model coefficients for shooter calculations.
This class is not meant to be instantiated or modified manually - values arederived from experimental shot data and curve-fitting.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShotData.ShotEntry[]Pre-computed shot entries for ground-pass trajectories.static final ShotData.ShotEntry[]Pre-computed shot entries for hub-targeted shots.static final doubleFraction of flywheel surface speed transferred to the ball as exit velocity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubledesiredFlywheelSpeed(double distance) Returns the desired flywheel speed in rotations per second for a given target distance, using a fitted quadratic model.static doubleestimatedBackspin(double hoodAngleDeg, double flywheelSpeedRps) Estimates the backspin imparted on the ball in rotations per second, using a fitted linear model over hood angle and flywheel speed.
-
Field Details
-
hubEntries
Pre-computed shot entries for hub-targeted shots. -
groundEntries
Pre-computed shot entries for ground-pass trajectories. -
SPEED_TRANSFER_COEFF
public static final double SPEED_TRANSFER_COEFFFraction of flywheel surface speed transferred to the ball as exit velocity.- See Also:
-
-
Constructor Details
-
GeneratedLUTs
public GeneratedLUTs()
-
-
Method Details
-
desiredFlywheelSpeed
public static double desiredFlywheelSpeed(double distance) Returns the desired flywheel speed in rotations per second for a given target distance, using a fitted quadratic model. -
estimatedBackspin
public static double estimatedBackspin(double hoodAngleDeg, double flywheelSpeedRps) Estimates the backspin imparted on the ball in rotations per second, using a fitted linear model over hood angle and flywheel speed.
-