Record Class AutoStartCheck.State

java.lang.Object
java.lang.Record
frc.spectrumLib.checks.AutoStartCheck.State
Record Components:
autoName - the selected auto's name
noAuto - whether the selection is the do-nothing auto
fileFound - whether the selection's auto file exists on the robot
start - the first path's starting pose, flipped and mirrored as it will run; empty if no path loaded
robotPose - the robot's fused pose
placements - times the code has put the pose on the start since boot
multiTagSeeds - times vision has seeded the pose from a multi-tag solve since boot
alliancePresent - whether the Driver Station has reported an alliance
enabled - whether the robot is enabled this loop
fmsAttached - whether the FMS is attached this loop
matchNumber - 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 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 a State record class.
      Parameters:
      autoName - the value for the autoName record component
      noAuto - the value for the noAuto record component
      fileFound - the value for the fileFound record component
      start - the value for the start record component
      robotPose - the value for the robotPose record component
      placements - the value for the placements record component
      multiTagSeeds - the value for the multiTagSeeds record component
      alliancePresent - the value for the alliancePresent record component
      enabled - the value for the enabled record component
      fmsAttached - the value for the fmsAttached record component
      matchNumber - the value for the matchNumber 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.
    • autoName

      public String autoName()
      Returns the value of the autoName record component.
      Returns:
      the value of the autoName record component
    • noAuto

      public boolean noAuto()
      Returns the value of the noAuto record component.
      Returns:
      the value of the noAuto record component
    • fileFound

      public boolean fileFound()
      Returns the value of the fileFound record component.
      Returns:
      the value of the fileFound record component
    • start

      public Optional<Pose2d> start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • robotPose

      public Pose2d robotPose()
      Returns the value of the robotPose record component.
      Returns:
      the value of the robotPose record component
    • placements

      public long placements()
      Returns the value of the placements record component.
      Returns:
      the value of the placements record component
    • multiTagSeeds

      public long multiTagSeeds()
      Returns the value of the multiTagSeeds record component.
      Returns:
      the value of the multiTagSeeds record component
    • alliancePresent

      public boolean alliancePresent()
      Returns the value of the alliancePresent record component.
      Returns:
      the value of the alliancePresent record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • fmsAttached

      public boolean fmsAttached()
      Returns the value of the fmsAttached record component.
      Returns:
      the value of the fmsAttached record component
    • matchNumber

      public int matchNumber()
      Returns the value of the matchNumber record component.
      Returns:
      the value of the matchNumber record component