Class GeneratedLUTs

java.lang.Object
frc.robot.shotdata.GeneratedLUTs

public final class GeneratedLUTs extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static 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 double
    Fraction of flywheel surface speed transferred to the ball as exit velocity.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    desiredFlywheelSpeed(double distance)
    Returns the desired flywheel speed in rotations per second for a given target distance, using a fitted quadratic model.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • hubEntries

      public static final ShotData.ShotEntry[] hubEntries
      Pre-computed shot entries for hub-targeted shots.
    • groundEntries

      public static final ShotData.ShotEntry[] groundEntries
      Pre-computed shot entries for ground-pass trajectories.
    • SPEED_TRANSFER_COEFF

      public static final double SPEED_TRANSFER_COEFF
      Fraction 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.