Package frc.robot

Class Constants.ShootingConstants

java.lang.Object
frc.robot.Constants.ShootingConstants
Enclosing class:
Constants

public static class Constants.ShootingConstants extends Object
Constants that control the shooting behavior.
  • Field Details

    • FLYWHEEL_VELOCITY_BY_GAMEPIECE_VELOCITY

      public static final InterpolatingMeasureTreeMap<LinearVelocity,LinearVelocityUnit,AngularVelocity,AngularVelocityUnit> FLYWHEEL_VELOCITY_BY_GAMEPIECE_VELOCITY
      An interpolation table used for flywheel speed by gamepiece velocity.
    • HOOD_ANGLE_BY_GAMEPIECE_THETA

      public static final InterpolatingMeasureTreeMap<Angle,AngleUnit,Angle,AngleUnit> HOOD_ANGLE_BY_GAMEPIECE_THETA
      An interpolation table used for hood angle by gamepiece velocity.
    • FLYWHEEL_VELOCITY_BY_DISTANCE

      public static final InterpolatingMeasureTreeMap<Distance,DistanceUnit,AngularVelocity,AngularVelocityUnit> FLYWHEEL_VELOCITY_BY_DISTANCE
      An interpolation table used for flywheel speed by distance, for basic shoot-from-anywhere.
    • HOOD_ANGLE_BY_DISTANCE

      public static final InterpolatingMeasureTreeMap<Distance,DistanceUnit,Angle,AngleUnit> HOOD_ANGLE_BY_DISTANCE
      An interpolation table used for hood angle by distance, for basic shoot-from-anywhere.
    • GAMEPIECE_THETA

      public static final Angle GAMEPIECE_THETA
      The angle to shoot the gamepiece at.
    • GAMEPIECE_G

      public static final LinearAcceleration GAMEPIECE_G
      The acceleration due to gravity imposed on the gamepiece.
    • SHOOTING_TIMEOUT

      public static final Time SHOOTING_TIMEOUT
      How long to wait after no balls are detected to stop shooting.
    • LINREG_HOOD_ANGLE_A

      public static final double LINREG_HOOD_ANGLE_A
      the A in the linreg for x=hood angle y = output angle
      See Also:
    • LINREG_HOOD_ANGLE_B

      public static final double LINREG_HOOD_ANGLE_B
      the B in the linreg for x=hood angle y = output angle
      See Also:
    • LINREG_FLYWHEEL_A

      public static final double LINREG_FLYWHEEL_A
      the A in the linreg for x=flywheel speed y = output speed
      See Also:
    • LINREG_FLYWHEEL_B

      public static final double LINREG_FLYWHEEL_B
      the B in the linreg for x=flywheel speed y = output speed
      See Also:
    • MIN_SHOOT_ANGLE

      public static final Angle MIN_SHOOT_ANGLE
      The minimum angle to shoot at.
    • MAX_SHOOT_ANGLE

      public static final Angle MAX_SHOOT_ANGLE
      The maximum angle to shoot at.
    • STATIC_SHOOT_VALUES

      public static final ShooterValues STATIC_SHOOT_VALUES
      A set of values to shoot from a static position.
    • STATIC_SHOOT_LEFT_DOOR_VALUES

      public static final ShooterValues STATIC_SHOOT_LEFT_DOOR_VALUES
      A set of values to shoot from the left by the door.
    • STATIC_SHOOT_RIGHT_DOOR_VALUES

      public static final ShooterValues STATIC_SHOOT_RIGHT_DOOR_VALUES
      A set of values to shoot from the right by the door.
    • STATIC_SHOOT_CENTER

      public static final ShooterValues STATIC_SHOOT_CENTER
      A set of values to shoot from the center by the tower.
  • Constructor Details

    • ShootingConstants

      public ShootingConstants()