Class ShooterState
java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterState
Data class for computed shooter states.
-
Constructor Summary
ConstructorsConstructorDescriptionShooterState
(double hoodAngleDeg, double yawRobotOrientedDeg, double wheelRPM, boolean isPossible, double exitVelocity) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the exit velocity of the game piece.double
Returns the hood angle in degrees.double
Returns the flywheel RPM.double
Returns the robot oriented turret yaw in degrees.boolean
Returns whether the target is reachable, assuming a pivoting shooter.toString()
-
Constructor Details
-
ShooterState
public ShooterState(double hoodAngleDeg, double yawRobotOrientedDeg, double wheelRPM, boolean isPossible, double exitVelocity)
-
-
Method Details
-
getHoodAngleDeg
public double getHoodAngleDeg()Returns the hood angle in degrees.- Returns:
- The angle.
-
getYawRobotOriented
public double getYawRobotOriented()Returns the robot oriented turret yaw in degrees.- Returns:
- The yaw.
-
getWheelRPM
public double getWheelRPM()Returns the flywheel RPM.- Returns:
- The RPM.
-
isPossible
public boolean isPossible()Returns whether the target is reachable, assuming a pivoting shooter.- Returns:
- true if reachable, false otherwise.
-
getExitVelocity
public double getExitVelocity()Returns the exit velocity of the game piece.- Returns:
- The exit velocity.
-
toString
-