Class ShooterState

java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterState

public class ShooterState extends Object
Data class for computed shooter states.
  • 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

      public String toString()
      Overrides:
      toString in class Object