Record Class DetachedEncoder.PeriodicStatus1
java.lang.Object
java.lang.Record
com.revrobotics.encoder.DetachedEncoder.PeriodicStatus1
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
DetachedEncoder
public static record DetachedEncoder.PeriodicStatus1(boolean unexpectedFault, boolean hasResetFault, boolean canTxFault, boolean canRxFault, boolean eepromFault, boolean stickyUnexpectedFault, boolean stickyHasResetFault, boolean stickyCanTxFault, boolean stickyCanRxFault, boolean stickyEepromFault, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus1(boolean unexpectedFault, boolean hasResetFault, boolean canTxFault, boolean canRxFault, boolean eepromFault, boolean stickyUnexpectedFault, boolean stickyHasResetFault, boolean stickyCanTxFault, boolean stickyCanRxFault, boolean stickyEepromFault, int revlibError, long timestamp) Creates an instance of aPeriodicStatus1record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanRxFaultrecord component.booleanReturns the value of thecanTxFaultrecord component.booleanReturns the value of theeepromFaultrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasResetFaultrecord component.intReturns the value of therevlibErrorrecord component.booleanReturns the value of thestickyCanRxFaultrecord component.booleanReturns the value of thestickyCanTxFaultrecord component.booleanReturns the value of thestickyEepromFaultrecord component.booleanReturns the value of thestickyHasResetFaultrecord component.booleanReturns the value of thestickyUnexpectedFaultrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunexpectedFaultrecord component.Methods inherited from interface StatusFrame
getRevlibError
-
Constructor Details
-
PeriodicStatus1
public PeriodicStatus1(boolean unexpectedFault, boolean hasResetFault, boolean canTxFault, boolean canRxFault, boolean eepromFault, boolean stickyUnexpectedFault, boolean stickyHasResetFault, boolean stickyCanTxFault, boolean stickyCanRxFault, boolean stickyEepromFault, int revlibError, long timestamp) Creates an instance of aPeriodicStatus1record class.- Parameters:
unexpectedFault- the value for theunexpectedFaultrecord componenthasResetFault- the value for thehasResetFaultrecord componentcanTxFault- the value for thecanTxFaultrecord componentcanRxFault- the value for thecanRxFaultrecord componenteepromFault- the value for theeepromFaultrecord componentstickyUnexpectedFault- the value for thestickyUnexpectedFaultrecord componentstickyHasResetFault- the value for thestickyHasResetFaultrecord componentstickyCanTxFault- the value for thestickyCanTxFaultrecord componentstickyCanRxFault- the value for thestickyCanRxFaultrecord componentstickyEepromFault- the value for thestickyEepromFaultrecord componentrevlibError- the value for therevlibErrorrecord componenttimestamp- the value for thetimestamprecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
unexpectedFault
public boolean unexpectedFault()Returns the value of theunexpectedFaultrecord component.- Returns:
- the value of the
unexpectedFaultrecord component
-
hasResetFault
public boolean hasResetFault()Returns the value of thehasResetFaultrecord component.- Returns:
- the value of the
hasResetFaultrecord component
-
canTxFault
public boolean canTxFault()Returns the value of thecanTxFaultrecord component.- Returns:
- the value of the
canTxFaultrecord component
-
canRxFault
public boolean canRxFault()Returns the value of thecanRxFaultrecord component.- Returns:
- the value of the
canRxFaultrecord component
-
eepromFault
public boolean eepromFault()Returns the value of theeepromFaultrecord component.- Returns:
- the value of the
eepromFaultrecord component
-
stickyUnexpectedFault
public boolean stickyUnexpectedFault()Returns the value of thestickyUnexpectedFaultrecord component.- Returns:
- the value of the
stickyUnexpectedFaultrecord component
-
stickyHasResetFault
public boolean stickyHasResetFault()Returns the value of thestickyHasResetFaultrecord component.- Returns:
- the value of the
stickyHasResetFaultrecord component
-
stickyCanTxFault
public boolean stickyCanTxFault()Returns the value of thestickyCanTxFaultrecord component.- Returns:
- the value of the
stickyCanTxFaultrecord component
-
stickyCanRxFault
public boolean stickyCanRxFault()Returns the value of thestickyCanRxFaultrecord component.- Returns:
- the value of the
stickyCanRxFaultrecord component
-
stickyEepromFault
public boolean stickyEepromFault()Returns the value of thestickyEepromFaultrecord component.- Returns:
- the value of the
stickyEepromFaultrecord component
-
revlibError
public int revlibError()Returns the value of therevlibErrorrecord component.- Specified by:
revlibErrorin interfaceStatusFrame- Returns:
- the value of the
revlibErrorrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceStatusFrame- Returns:
- the value of the
timestamprecord component
-