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
ConstructorsConstructorDescriptionShot(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 aShotrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theactualHoodDegrecord component.doubleReturns the value of theactualRpmrecord component.doubleReturns the value of theaimToleranceRadrecord component.alliance()Returns the value of thealliancerecord component.booleanReturns the value of theautonomousrecord component.decision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theheadingErrorRadrecord component.doubleReturns the value of thematchTimeSecondsrecord component.doubleReturns the value of thenowSecondsrecord component.params()Returns the value of theparamsrecord component.pose()Returns the value of theposerecord component.booleanReturns the value of theposeTrustedrecord component.doubleReturns the value of therobotSpeedMsrecord component.doubleReturns the value of thesecondsSinceFusedEstimaterecord component.doubleReturns the value of thesecondsWaitedrecord component.booleanReturns the value of theseedConfirmedrecord component.setShot()Returns the value of thesetShotrecord component.Returns the value of thesuperStaterecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thewantedHoodDegrecord component.doubleReturns the value of thewantedRpmrecord component.
-
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 aShotrecord class.- Parameters:
nowSeconds- the value for thenowSecondsrecord componentmatchTimeSeconds- the value for thematchTimeSecondsrecord componentalliance- the value for thealliancerecord componentautonomous- the value for theautonomousrecord componentsuperState- the value for thesuperStaterecord componentdecision- the value for thedecisionrecord componentsecondsWaited- the value for thesecondsWaitedrecord componentparams- the value for theparamsrecord componentsetShot- the value for thesetShotrecord componentwantedRpm- the value for thewantedRpmrecord componentactualRpm- the value for theactualRpmrecord componentwantedHoodDeg- the value for thewantedHoodDegrecord componentactualHoodDeg- the value for theactualHoodDegrecord componentheadingErrorRad- the value for theheadingErrorRadrecord componentaimToleranceRad- the value for theaimToleranceRadrecord componentposeTrusted- the value for theposeTrustedrecord componentsecondsSinceFusedEstimate- the value for thesecondsSinceFusedEstimaterecord componentseedConfirmed- the value for theseedConfirmedrecord componentrobotSpeedMs- the value for therobotSpeedMsrecord componentpose- the value for theposerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nowSeconds
public double nowSeconds()Returns the value of thenowSecondsrecord component.- Returns:
- the value of the
nowSecondsrecord component
-
matchTimeSeconds
public double matchTimeSeconds()Returns the value of thematchTimeSecondsrecord component.- Returns:
- the value of the
matchTimeSecondsrecord component
-
alliance
Returns the value of thealliancerecord component.- Returns:
- the value of the
alliancerecord component
-
autonomous
public boolean autonomous()Returns the value of theautonomousrecord component.- Returns:
- the value of the
autonomousrecord component
-
superState
Returns the value of thesuperStaterecord component.- Returns:
- the value of the
superStaterecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
secondsWaited
public double secondsWaited()Returns the value of thesecondsWaitedrecord component.- Returns:
- the value of the
secondsWaitedrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
setShot
Returns the value of thesetShotrecord component.- Returns:
- the value of the
setShotrecord component
-
wantedRpm
public double wantedRpm()Returns the value of thewantedRpmrecord component.- Returns:
- the value of the
wantedRpmrecord component
-
actualRpm
public double actualRpm()Returns the value of theactualRpmrecord component.- Returns:
- the value of the
actualRpmrecord component
-
wantedHoodDeg
public double wantedHoodDeg()Returns the value of thewantedHoodDegrecord component.- Returns:
- the value of the
wantedHoodDegrecord component
-
actualHoodDeg
public double actualHoodDeg()Returns the value of theactualHoodDegrecord component.- Returns:
- the value of the
actualHoodDegrecord component
-
headingErrorRad
public double headingErrorRad()Returns the value of theheadingErrorRadrecord component.- Returns:
- the value of the
headingErrorRadrecord component
-
aimToleranceRad
public double aimToleranceRad()Returns the value of theaimToleranceRadrecord component.- Returns:
- the value of the
aimToleranceRadrecord component
-
poseTrusted
public boolean poseTrusted()Returns the value of theposeTrustedrecord component.- Returns:
- the value of the
poseTrustedrecord component
-
secondsSinceFusedEstimate
public double secondsSinceFusedEstimate()Returns the value of thesecondsSinceFusedEstimaterecord component.- Returns:
- the value of the
secondsSinceFusedEstimaterecord component
-
seedConfirmed
public boolean seedConfirmed()Returns the value of theseedConfirmedrecord component.- Returns:
- the value of the
seedConfirmedrecord component
-
robotSpeedMs
public double robotSpeedMs()Returns the value of therobotSpeedMsrecord component.- Returns:
- the value of the
robotSpeedMsrecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-