Record Class RawFiducial
java.lang.Object
java.lang.Record
com.titaniumtigers4829.data.fiducial.RawFiducial
public record RawFiducial(int id, double txnc, double tync, double ta, double distToCamera, double distToRobot, double ambiguity)
extends Record
Represents a Limelight Raw Fiducial result from Limelight's NetworkTables output.
-
Constructor Summary
ConstructorsConstructorDescriptionRawFiducial(int id, double txnc, double tync, double ta, double distToCamera, double distToRobot, double ambiguity) Creates an instance of aRawFiducialrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theambiguityrecord component.doubleReturns the value of thedistToCamerarecord component.doubleReturns the value of thedistToRobotrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.doubleta()Returns the value of thetarecord component.final StringtoString()Returns a string representation of this record class.doubletxnc()Returns the value of thetxncrecord component.doubletync()Returns the value of thetyncrecord component.
-
Constructor Details
-
RawFiducial
public RawFiducial(int id, double txnc, double tync, double ta, double distToCamera, double distToRobot, double ambiguity) Creates an instance of aRawFiducialrecord class.- Parameters:
id- the value for theidrecord componenttxnc- the value for thetxncrecord componenttync- the value for thetyncrecord componentta- the value for thetarecord componentdistToCamera- the value for thedistToCamerarecord componentdistToRobot- the value for thedistToRobotrecord componentambiguity- the value for theambiguityrecord component
-
-
Method Details
-
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. -
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. -
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. All components in this record class are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
txnc
public double txnc()Returns the value of thetxncrecord component.- Returns:
- the value of the
txncrecord component
-
tync
public double tync()Returns the value of thetyncrecord component.- Returns:
- the value of the
tyncrecord component
-
ta
public double ta()Returns the value of thetarecord component.- Returns:
- the value of the
tarecord component
-
distToCamera
public double distToCamera()Returns the value of thedistToCamerarecord component.- Returns:
- the value of the
distToCamerarecord component
-
distToRobot
public double distToRobot()Returns the value of thedistToRobotrecord component.- Returns:
- the value of the
distToRobotrecord component
-
ambiguity
public double ambiguity()Returns the value of theambiguityrecord component.- Returns:
- the value of the
ambiguityrecord component
-