Record Class AutoStartCheck.State
java.lang.Object
java.lang.Record
frc.spectrumLib.checks.AutoStartCheck.State
- Record Components:
autoName- the selected auto's namenoAuto- whether the selection is the do-nothing autofileFound- whether the selection's auto file exists on the robotstart- the first path's starting pose, flipped and mirrored as it will run; empty if no path loadedrobotPose- the robot's fused poseplacements- times the code has put the pose on the start since bootmultiTagSeeds- times vision has seeded the pose from a multi-tag solve since bootalliancePresent- whether the Driver Station has reported an allianceenabled- whether the robot is enabled this loopfmsAttached- whether the FMS is attached this loopmatchNumber- the match number the Driver Station reports
- Enclosing class:
AutoStartCheck
public static record AutoStartCheck.State(String autoName, boolean noAuto, boolean fileFound, Optional<Pose2d> start, Pose2d robotPose, long placements, long multiTagSeeds, boolean alliancePresent, boolean enabled, boolean fmsAttached, int matchNumber)
extends Record
What the check needs, from logged inputs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealliancePresentrecord component.autoName()Returns the value of theautoNamerecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefileFoundrecord component.booleanReturns the value of thefmsAttachedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thematchNumberrecord component.longReturns the value of themultiTagSeedsrecord component.booleannoAuto()Returns the value of thenoAutorecord component.longReturns the value of theplacementsrecord component.Returns the value of therobotPoserecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
State
public State(String autoName, boolean noAuto, boolean fileFound, Optional<Pose2d> start, Pose2d robotPose, long placements, long multiTagSeeds, boolean alliancePresent, boolean enabled, boolean fmsAttached, int matchNumber) Creates an instance of aStaterecord class.- Parameters:
autoName- the value for theautoNamerecord componentnoAuto- the value for thenoAutorecord componentfileFound- the value for thefileFoundrecord componentstart- the value for thestartrecord componentrobotPose- the value for therobotPoserecord componentplacements- the value for theplacementsrecord componentmultiTagSeeds- the value for themultiTagSeedsrecord componentalliancePresent- the value for thealliancePresentrecord componentenabled- the value for theenabledrecord componentfmsAttached- the value for thefmsAttachedrecord componentmatchNumber- the value for thematchNumberrecord 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. -
autoName
-
noAuto
-
fileFound
-
start
-
robotPose
-
placements
public long placements()Returns the value of theplacementsrecord component.- Returns:
- the value of the
placementsrecord component
-
multiTagSeeds
public long multiTagSeeds()Returns the value of themultiTagSeedsrecord component.- Returns:
- the value of the
multiTagSeedsrecord component
-
alliancePresent
public boolean alliancePresent()Returns the value of thealliancePresentrecord component.- Returns:
- the value of the
alliancePresentrecord component
-
enabled
-
fmsAttached
public boolean fmsAttached()Returns the value of thefmsAttachedrecord component.- Returns:
- the value of the
fmsAttachedrecord component
-
matchNumber
public int matchNumber()Returns the value of thematchNumberrecord component.- Returns:
- the value of the
matchNumberrecord component
-