Record Class ShotLog.Shot

java.lang.Object
java.lang.Record
frc.robot.subsystems.ShotLog.Shot
Enclosing class:
ShotLog

public static record ShotLog.Shot(double nowSeconds, double matchTimeSeconds, String alliance, boolean autonomous, String superState, ShotGate.Decision decision, double secondsWaited, ShotCalculator.ShootingParameters params, ShotCalculator.SetShot setShot, double wantedRpm, double actualRpm, double wantedHoodDeg, double actualHoodDeg, double headingErrorRad, double aimToleranceRad, boolean poseTrusted, double secondsSinceFusedEstimate, boolean seedConfirmed, double robotSpeedMs, Pose2d pose) extends Record
Everything a row needs that the log cannot look up itself.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Shot(double nowSeconds, double matchTimeSeconds, String alliance, boolean autonomous, String superState, ShotGate.Decision decision, double secondsWaited, ShotCalculator.ShootingParameters params, ShotCalculator.SetShot setShot, double wantedRpm, double actualRpm, double wantedHoodDeg, double actualHoodDeg, double headingErrorRad, double aimToleranceRad, boolean poseTrusted, double secondsSinceFusedEstimate, boolean seedConfirmed, double robotSpeedMs, Pose2d pose)
    Creates an instance of a Shot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the actualHoodDeg record component.
    double
    Returns the value of the actualRpm record component.
    double
    Returns the value of the aimToleranceRad record component.
    Returns the value of the alliance record component.
    boolean
    Returns the value of the autonomous record component.
    Returns the value of the decision record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the headingErrorRad record component.
    double
    Returns the value of the matchTimeSeconds record component.
    double
    Returns the value of the nowSeconds record component.
    Returns the value of the params record component.
    Returns the value of the pose record component.
    boolean
    Returns the value of the poseTrusted record component.
    double
    Returns the value of the robotSpeedMs record component.
    double
    Returns the value of the secondsSinceFusedEstimate record component.
    double
    Returns the value of the secondsWaited record component.
    boolean
    Returns the value of the seedConfirmed record component.
    Returns the value of the setShot record component.
    Returns the value of the superState record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the wantedHoodDeg record component.
    double
    Returns the value of the wantedRpm record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Shot

      public Shot(double nowSeconds, double matchTimeSeconds, String alliance, boolean autonomous, String superState, ShotGate.Decision decision, double secondsWaited, ShotCalculator.ShootingParameters params, ShotCalculator.SetShot setShot, double wantedRpm, double actualRpm, double wantedHoodDeg, double actualHoodDeg, double headingErrorRad, double aimToleranceRad, boolean poseTrusted, double secondsSinceFusedEstimate, boolean seedConfirmed, double robotSpeedMs, Pose2d pose)
      Creates an instance of a Shot record class.
      Parameters:
      nowSeconds - the value for the nowSeconds record component
      matchTimeSeconds - the value for the matchTimeSeconds record component
      alliance - the value for the alliance record component
      autonomous - the value for the autonomous record component
      superState - the value for the superState record component
      decision - the value for the decision record component
      secondsWaited - the value for the secondsWaited record component
      params - the value for the params record component
      setShot - the value for the setShot record component
      wantedRpm - the value for the wantedRpm record component
      actualRpm - the value for the actualRpm record component
      wantedHoodDeg - the value for the wantedHoodDeg record component
      actualHoodDeg - the value for the actualHoodDeg record component
      headingErrorRad - the value for the headingErrorRad record component
      aimToleranceRad - the value for the aimToleranceRad record component
      poseTrusted - the value for the poseTrusted record component
      secondsSinceFusedEstimate - the value for the secondsSinceFusedEstimate record component
      seedConfirmed - the value for the seedConfirmed record component
      robotSpeedMs - the value for the robotSpeedMs record component
      pose - the value for the pose record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nowSeconds

      public double nowSeconds()
      Returns the value of the nowSeconds record component.
      Returns:
      the value of the nowSeconds record component
    • matchTimeSeconds

      public double matchTimeSeconds()
      Returns the value of the matchTimeSeconds record component.
      Returns:
      the value of the matchTimeSeconds record component
    • alliance

      public String alliance()
      Returns the value of the alliance record component.
      Returns:
      the value of the alliance record component
    • autonomous

      public boolean autonomous()
      Returns the value of the autonomous record component.
      Returns:
      the value of the autonomous record component
    • superState

      public String superState()
      Returns the value of the superState record component.
      Returns:
      the value of the superState record component
    • decision

      public ShotGate.Decision decision()
      Returns the value of the decision record component.
      Returns:
      the value of the decision record component
    • secondsWaited

      public double secondsWaited()
      Returns the value of the secondsWaited record component.
      Returns:
      the value of the secondsWaited record component
    • params

      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • setShot

      public ShotCalculator.SetShot setShot()
      Returns the value of the setShot record component.
      Returns:
      the value of the setShot record component
    • wantedRpm

      public double wantedRpm()
      Returns the value of the wantedRpm record component.
      Returns:
      the value of the wantedRpm record component
    • actualRpm

      public double actualRpm()
      Returns the value of the actualRpm record component.
      Returns:
      the value of the actualRpm record component
    • wantedHoodDeg

      public double wantedHoodDeg()
      Returns the value of the wantedHoodDeg record component.
      Returns:
      the value of the wantedHoodDeg record component
    • actualHoodDeg

      public double actualHoodDeg()
      Returns the value of the actualHoodDeg record component.
      Returns:
      the value of the actualHoodDeg record component
    • headingErrorRad

      public double headingErrorRad()
      Returns the value of the headingErrorRad record component.
      Returns:
      the value of the headingErrorRad record component
    • aimToleranceRad

      public double aimToleranceRad()
      Returns the value of the aimToleranceRad record component.
      Returns:
      the value of the aimToleranceRad record component
    • poseTrusted

      public boolean poseTrusted()
      Returns the value of the poseTrusted record component.
      Returns:
      the value of the poseTrusted record component
    • secondsSinceFusedEstimate

      public double secondsSinceFusedEstimate()
      Returns the value of the secondsSinceFusedEstimate record component.
      Returns:
      the value of the secondsSinceFusedEstimate record component
    • seedConfirmed

      public boolean seedConfirmed()
      Returns the value of the seedConfirmed record component.
      Returns:
      the value of the seedConfirmed record component
    • robotSpeedMs

      public double robotSpeedMs()
      Returns the value of the robotSpeedMs record component.
      Returns:
      the value of the robotSpeedMs record component
    • pose

      public Pose2d pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component