Package frc.robot
Class Constants.ShootingConstants
java.lang.Object
frc.robot.Constants.ShootingConstants
- Enclosing class:
- Constants
Constants that control the shooting behavior.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAn interpolation table used for flywheel speed by distance, for basic shoot-from-anywhere.static final InterpolatingMeasureTreeMap<LinearVelocity,LinearVelocityUnit, AngularVelocity, AngularVelocityUnit> An interpolation table used for flywheel speed by gamepiece velocity.static final LinearAccelerationThe acceleration due to gravity imposed on the gamepiece.static final AngleThe angle to shoot the gamepiece at.static final InterpolatingMeasureTreeMap<Distance,DistanceUnit, Angle, AngleUnit> An interpolation table used for hood angle by distance, for basic shoot-from-anywhere.static final InterpolatingMeasureTreeMap<Angle,AngleUnit, Angle, AngleUnit> An interpolation table used for hood angle by gamepiece velocity.static final doublethe A in the linreg for x=flywheel speed y = output speedstatic final doublethe B in the linreg for x=flywheel speed y = output speedstatic final doublethe A in the linreg for x=hood angle y = output anglestatic final doublethe B in the linreg for x=hood angle y = output anglestatic final AngleThe maximum angle to shoot at.static final AngleThe minimum angle to shoot at.static final TimeHow long to wait after no balls are detected to stop shooting.static final ShooterValuesA set of values to shoot from the center by the tower.static final ShooterValuesA set of values to shoot from the left by the door.static final ShooterValuesA set of values to shoot from the right by the door.static final ShooterValuesA set of values to shoot from a static position. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FLYWHEEL_VELOCITY_BY_GAMEPIECE_VELOCITY
public static final InterpolatingMeasureTreeMap<LinearVelocity,LinearVelocityUnit, FLYWHEEL_VELOCITY_BY_GAMEPIECE_VELOCITYAngularVelocity, AngularVelocityUnit> An interpolation table used for flywheel speed by gamepiece velocity. -
HOOD_ANGLE_BY_GAMEPIECE_THETA
public static final InterpolatingMeasureTreeMap<Angle,AngleUnit, HOOD_ANGLE_BY_GAMEPIECE_THETAAngle, AngleUnit> An interpolation table used for hood angle by gamepiece velocity. -
FLYWHEEL_VELOCITY_BY_DISTANCE
public static final InterpolatingMeasureTreeMap<Distance,DistanceUnit, FLYWHEEL_VELOCITY_BY_DISTANCEAngularVelocity, AngularVelocityUnit> An interpolation table used for flywheel speed by distance, for basic shoot-from-anywhere. -
HOOD_ANGLE_BY_DISTANCE
public static final InterpolatingMeasureTreeMap<Distance,DistanceUnit, HOOD_ANGLE_BY_DISTANCEAngle, AngleUnit> An interpolation table used for hood angle by distance, for basic shoot-from-anywhere. -
GAMEPIECE_THETA
The angle to shoot the gamepiece at. -
GAMEPIECE_G
The acceleration due to gravity imposed on the gamepiece. -
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_Athe A in the linreg for x=hood angle y = output angle- See Also:
-
LINREG_HOOD_ANGLE_B
public static final double LINREG_HOOD_ANGLE_Bthe B in the linreg for x=hood angle y = output angle- See Also:
-
LINREG_FLYWHEEL_A
public static final double LINREG_FLYWHEEL_Athe A in the linreg for x=flywheel speed y = output speed- See Also:
-
LINREG_FLYWHEEL_B
public static final double LINREG_FLYWHEEL_Bthe B in the linreg for x=flywheel speed y = output speed- See Also:
-
MIN_SHOOT_ANGLE
The minimum angle to shoot at. -
MAX_SHOOT_ANGLE
The maximum angle to shoot at. -
STATIC_SHOOT_VALUES
A set of values to shoot from a static position. -
STATIC_SHOOT_LEFT_DOOR_VALUES
A set of values to shoot from the left by the door. -
STATIC_SHOOT_RIGHT_DOOR_VALUES
A set of values to shoot from the right by the door. -
STATIC_SHOOT_CENTER
A set of values to shoot from the center by the tower.
-
-
Constructor Details
-
ShootingConstants
public ShootingConstants()
-