Record Class SparkLowLevel.PeriodicStatus1
java.lang.Object
java.lang.Record
com.revrobotics.spark.SparkLowLevel.PeriodicStatus1
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
SparkLowLevel
public static record SparkLowLevel.PeriodicStatus1(boolean otherFault, boolean motorTypeFault, boolean sensorFault, boolean canFault, boolean temperatureFault, boolean drvFault, boolean escEepromFault, boolean firmwareFault, boolean brownoutWarning, boolean overcurrentWarning, boolean escEepromWarning, boolean extEepromWarning, boolean sensorWarning, boolean stallWarning, boolean hasResetWarning, boolean otherWarning, boolean otherStickyFault, boolean motorTypeStickyFault, boolean sensorStickyFault, boolean canStickyFault, boolean temperatureStickyFault, boolean drvStickyFault, boolean escEepromStickyFault, boolean firmwareStickyFault, boolean brownoutStickyWarning, boolean overcurrentStickyWarning, boolean escEepromStickyWarning, boolean extEepromStickyWarning, boolean sensorStickyWarning, boolean stallStickyWarning, boolean hasResetStickyWarning, boolean otherStickyWarning, boolean isFollower, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus1(boolean otherFault, boolean motorTypeFault, boolean sensorFault, boolean canFault, boolean temperatureFault, boolean drvFault, boolean escEepromFault, boolean firmwareFault, boolean brownoutWarning, boolean overcurrentWarning, boolean escEepromWarning, boolean extEepromWarning, boolean sensorWarning, boolean stallWarning, boolean hasResetWarning, boolean otherWarning, boolean otherStickyFault, boolean motorTypeStickyFault, boolean sensorStickyFault, boolean canStickyFault, boolean temperatureStickyFault, boolean drvStickyFault, boolean escEepromStickyFault, boolean firmwareStickyFault, boolean brownoutStickyWarning, boolean overcurrentStickyWarning, boolean escEepromStickyWarning, boolean extEepromStickyWarning, boolean sensorStickyWarning, boolean stallStickyWarning, boolean hasResetStickyWarning, boolean otherStickyWarning, boolean isFollower, int revlibError, long timestamp) Creates an instance of aPeriodicStatus1record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebrownoutStickyWarningrecord component.booleanReturns the value of thebrownoutWarningrecord component.booleancanFault()Returns the value of thecanFaultrecord component.booleanReturns the value of thecanStickyFaultrecord component.booleandrvFault()Returns the value of thedrvFaultrecord component.booleanReturns the value of thedrvStickyFaultrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theescEepromFaultrecord component.booleanReturns the value of theescEepromStickyFaultrecord component.booleanReturns the value of theescEepromStickyWarningrecord component.booleanReturns the value of theescEepromWarningrecord component.booleanReturns the value of theextEepromStickyWarningrecord component.booleanReturns the value of theextEepromWarningrecord component.booleanReturns the value of thefirmwareFaultrecord component.booleanReturns the value of thefirmwareStickyFaultrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasResetStickyWarningrecord component.booleanReturns the value of thehasResetWarningrecord component.booleanReturns the value of theisFollowerrecord component.booleanReturns the value of themotorTypeFaultrecord component.booleanReturns the value of themotorTypeStickyFaultrecord component.booleanReturns the value of theotherFaultrecord component.booleanReturns the value of theotherStickyFaultrecord component.booleanReturns the value of theotherStickyWarningrecord component.booleanReturns the value of theotherWarningrecord component.booleanReturns the value of theovercurrentStickyWarningrecord component.booleanReturns the value of theovercurrentWarningrecord component.intReturns the value of therevlibErrorrecord component.booleanReturns the value of thesensorFaultrecord component.booleanReturns the value of thesensorStickyFaultrecord component.booleanReturns the value of thesensorStickyWarningrecord component.booleanReturns the value of thesensorWarningrecord component.booleanReturns the value of thestallStickyWarningrecord component.booleanReturns the value of thestallWarningrecord component.booleanReturns the value of thetemperatureFaultrecord component.booleanReturns the value of thetemperatureStickyFaultrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface StatusFrame
getRevlibError
-
Constructor Details
-
PeriodicStatus1
public PeriodicStatus1(boolean otherFault, boolean motorTypeFault, boolean sensorFault, boolean canFault, boolean temperatureFault, boolean drvFault, boolean escEepromFault, boolean firmwareFault, boolean brownoutWarning, boolean overcurrentWarning, boolean escEepromWarning, boolean extEepromWarning, boolean sensorWarning, boolean stallWarning, boolean hasResetWarning, boolean otherWarning, boolean otherStickyFault, boolean motorTypeStickyFault, boolean sensorStickyFault, boolean canStickyFault, boolean temperatureStickyFault, boolean drvStickyFault, boolean escEepromStickyFault, boolean firmwareStickyFault, boolean brownoutStickyWarning, boolean overcurrentStickyWarning, boolean escEepromStickyWarning, boolean extEepromStickyWarning, boolean sensorStickyWarning, boolean stallStickyWarning, boolean hasResetStickyWarning, boolean otherStickyWarning, boolean isFollower, int revlibError, long timestamp) Creates an instance of aPeriodicStatus1record class.- Parameters:
otherFault- the value for theotherFaultrecord componentmotorTypeFault- the value for themotorTypeFaultrecord componentsensorFault- the value for thesensorFaultrecord componentcanFault- the value for thecanFaultrecord componenttemperatureFault- the value for thetemperatureFaultrecord componentdrvFault- the value for thedrvFaultrecord componentescEepromFault- the value for theescEepromFaultrecord componentfirmwareFault- the value for thefirmwareFaultrecord componentbrownoutWarning- the value for thebrownoutWarningrecord componentovercurrentWarning- the value for theovercurrentWarningrecord componentescEepromWarning- the value for theescEepromWarningrecord componentextEepromWarning- the value for theextEepromWarningrecord componentsensorWarning- the value for thesensorWarningrecord componentstallWarning- the value for thestallWarningrecord componenthasResetWarning- the value for thehasResetWarningrecord componentotherWarning- the value for theotherWarningrecord componentotherStickyFault- the value for theotherStickyFaultrecord componentmotorTypeStickyFault- the value for themotorTypeStickyFaultrecord componentsensorStickyFault- the value for thesensorStickyFaultrecord componentcanStickyFault- the value for thecanStickyFaultrecord componenttemperatureStickyFault- the value for thetemperatureStickyFaultrecord componentdrvStickyFault- the value for thedrvStickyFaultrecord componentescEepromStickyFault- the value for theescEepromStickyFaultrecord componentfirmwareStickyFault- the value for thefirmwareStickyFaultrecord componentbrownoutStickyWarning- the value for thebrownoutStickyWarningrecord componentovercurrentStickyWarning- the value for theovercurrentStickyWarningrecord componentescEepromStickyWarning- the value for theescEepromStickyWarningrecord componentextEepromStickyWarning- the value for theextEepromStickyWarningrecord componentsensorStickyWarning- the value for thesensorStickyWarningrecord componentstallStickyWarning- the value for thestallStickyWarningrecord componenthasResetStickyWarning- the value for thehasResetStickyWarningrecord componentotherStickyWarning- the value for theotherStickyWarningrecord componentisFollower- the value for theisFollowerrecord 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. -
otherFault
public boolean otherFault()Returns the value of theotherFaultrecord component.- Returns:
- the value of the
otherFaultrecord component
-
motorTypeFault
public boolean motorTypeFault()Returns the value of themotorTypeFaultrecord component.- Returns:
- the value of the
motorTypeFaultrecord component
-
sensorFault
public boolean sensorFault()Returns the value of thesensorFaultrecord component.- Returns:
- the value of the
sensorFaultrecord component
-
canFault
public boolean canFault()Returns the value of thecanFaultrecord component.- Returns:
- the value of the
canFaultrecord component
-
temperatureFault
public boolean temperatureFault()Returns the value of thetemperatureFaultrecord component.- Returns:
- the value of the
temperatureFaultrecord component
-
drvFault
public boolean drvFault()Returns the value of thedrvFaultrecord component.- Returns:
- the value of the
drvFaultrecord component
-
escEepromFault
public boolean escEepromFault()Returns the value of theescEepromFaultrecord component.- Returns:
- the value of the
escEepromFaultrecord component
-
firmwareFault
public boolean firmwareFault()Returns the value of thefirmwareFaultrecord component.- Returns:
- the value of the
firmwareFaultrecord component
-
brownoutWarning
public boolean brownoutWarning()Returns the value of thebrownoutWarningrecord component.- Returns:
- the value of the
brownoutWarningrecord component
-
overcurrentWarning
public boolean overcurrentWarning()Returns the value of theovercurrentWarningrecord component.- Returns:
- the value of the
overcurrentWarningrecord component
-
escEepromWarning
public boolean escEepromWarning()Returns the value of theescEepromWarningrecord component.- Returns:
- the value of the
escEepromWarningrecord component
-
extEepromWarning
public boolean extEepromWarning()Returns the value of theextEepromWarningrecord component.- Returns:
- the value of the
extEepromWarningrecord component
-
sensorWarning
public boolean sensorWarning()Returns the value of thesensorWarningrecord component.- Returns:
- the value of the
sensorWarningrecord component
-
stallWarning
public boolean stallWarning()Returns the value of thestallWarningrecord component.- Returns:
- the value of the
stallWarningrecord component
-
hasResetWarning
public boolean hasResetWarning()Returns the value of thehasResetWarningrecord component.- Returns:
- the value of the
hasResetWarningrecord component
-
otherWarning
public boolean otherWarning()Returns the value of theotherWarningrecord component.- Returns:
- the value of the
otherWarningrecord component
-
otherStickyFault
public boolean otherStickyFault()Returns the value of theotherStickyFaultrecord component.- Returns:
- the value of the
otherStickyFaultrecord component
-
motorTypeStickyFault
public boolean motorTypeStickyFault()Returns the value of themotorTypeStickyFaultrecord component.- Returns:
- the value of the
motorTypeStickyFaultrecord component
-
sensorStickyFault
public boolean sensorStickyFault()Returns the value of thesensorStickyFaultrecord component.- Returns:
- the value of the
sensorStickyFaultrecord component
-
canStickyFault
public boolean canStickyFault()Returns the value of thecanStickyFaultrecord component.- Returns:
- the value of the
canStickyFaultrecord component
-
temperatureStickyFault
public boolean temperatureStickyFault()Returns the value of thetemperatureStickyFaultrecord component.- Returns:
- the value of the
temperatureStickyFaultrecord component
-
drvStickyFault
public boolean drvStickyFault()Returns the value of thedrvStickyFaultrecord component.- Returns:
- the value of the
drvStickyFaultrecord component
-
escEepromStickyFault
public boolean escEepromStickyFault()Returns the value of theescEepromStickyFaultrecord component.- Returns:
- the value of the
escEepromStickyFaultrecord component
-
firmwareStickyFault
public boolean firmwareStickyFault()Returns the value of thefirmwareStickyFaultrecord component.- Returns:
- the value of the
firmwareStickyFaultrecord component
-
brownoutStickyWarning
public boolean brownoutStickyWarning()Returns the value of thebrownoutStickyWarningrecord component.- Returns:
- the value of the
brownoutStickyWarningrecord component
-
overcurrentStickyWarning
public boolean overcurrentStickyWarning()Returns the value of theovercurrentStickyWarningrecord component.- Returns:
- the value of the
overcurrentStickyWarningrecord component
-
escEepromStickyWarning
public boolean escEepromStickyWarning()Returns the value of theescEepromStickyWarningrecord component.- Returns:
- the value of the
escEepromStickyWarningrecord component
-
extEepromStickyWarning
public boolean extEepromStickyWarning()Returns the value of theextEepromStickyWarningrecord component.- Returns:
- the value of the
extEepromStickyWarningrecord component
-
sensorStickyWarning
public boolean sensorStickyWarning()Returns the value of thesensorStickyWarningrecord component.- Returns:
- the value of the
sensorStickyWarningrecord component
-
stallStickyWarning
public boolean stallStickyWarning()Returns the value of thestallStickyWarningrecord component.- Returns:
- the value of the
stallStickyWarningrecord component
-
hasResetStickyWarning
public boolean hasResetStickyWarning()Returns the value of thehasResetStickyWarningrecord component.- Returns:
- the value of the
hasResetStickyWarningrecord component
-
otherStickyWarning
public boolean otherStickyWarning()Returns the value of theotherStickyWarningrecord component.- Returns:
- the value of the
otherStickyWarningrecord component
-
isFollower
public boolean isFollower()Returns the value of theisFollowerrecord component.- Returns:
- the value of the
isFollowerrecord 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
-