Record Class ServoHubLowLevel.PeriodicStatus1
java.lang.Object
java.lang.Record
com.revrobotics.servohub.ServoHubLowLevel.PeriodicStatus1
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
ServoHubLowLevel
public static record ServoHubLowLevel.PeriodicStatus1(boolean regulatorPowerGoodFault, boolean brownout, boolean canWarning, boolean canBusOff, boolean hardwareFault, boolean firmwareFault, boolean hasReset, boolean lowBatteryFault, boolean channel0Overcurrent, boolean channel1Overcurrent, boolean channel2Overcurrent, boolean channel3Overcurrent, boolean channel4Overcurrent, boolean channel5Overcurrent, boolean stickyRegulatorPowerGoodFault, boolean stickyBrownout, boolean stickyCanWarning, boolean stickyCanBusOff, boolean stickyHardwareFault, boolean stickyFirmwareFault, boolean stickyHasReset, boolean stickyLowBatteryFault, boolean stickyChannel0Overcurrent, boolean stickyChannel1Overcurrent, boolean stickyChannel2Overcurrent, boolean stickyChannel3Overcurrent, boolean stickyChannel4Overcurrent, boolean stickyChannel5Overcurrent, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus1(boolean regulatorPowerGoodFault, boolean brownout, boolean canWarning, boolean canBusOff, boolean hardwareFault, boolean firmwareFault, boolean hasReset, boolean lowBatteryFault, boolean channel0Overcurrent, boolean channel1Overcurrent, boolean channel2Overcurrent, boolean channel3Overcurrent, boolean channel4Overcurrent, boolean channel5Overcurrent, boolean stickyRegulatorPowerGoodFault, boolean stickyBrownout, boolean stickyCanWarning, boolean stickyCanBusOff, boolean stickyHardwareFault, boolean stickyFirmwareFault, boolean stickyHasReset, boolean stickyLowBatteryFault, boolean stickyChannel0Overcurrent, boolean stickyChannel1Overcurrent, boolean stickyChannel2Overcurrent, boolean stickyChannel3Overcurrent, boolean stickyChannel4Overcurrent, boolean stickyChannel5Overcurrent, int revlibError, long timestamp) Creates an instance of aPeriodicStatus1record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbrownout()Returns the value of thebrownoutrecord component.booleanReturns the value of thecanBusOffrecord component.booleanReturns the value of thecanWarningrecord component.booleanReturns the value of thechannel0Overcurrentrecord component.booleanReturns the value of thechannel1Overcurrentrecord component.booleanReturns the value of thechannel2Overcurrentrecord component.booleanReturns the value of thechannel3Overcurrentrecord component.booleanReturns the value of thechannel4Overcurrentrecord component.booleanReturns the value of thechannel5Overcurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefirmwareFaultrecord component.booleanReturns the value of thehardwareFaultrecord component.final inthashCode()Returns a hash code value for this object.booleanhasReset()Returns the value of thehasResetrecord component.booleanReturns the value of thelowBatteryFaultrecord component.booleanReturns the value of theregulatorPowerGoodFaultrecord component.intReturns the value of therevlibErrorrecord component.booleanReturns the value of thestickyBrownoutrecord component.booleanReturns the value of thestickyCanBusOffrecord component.booleanReturns the value of thestickyCanWarningrecord component.booleanReturns the value of thestickyChannel0Overcurrentrecord component.booleanReturns the value of thestickyChannel1Overcurrentrecord component.booleanReturns the value of thestickyChannel2Overcurrentrecord component.booleanReturns the value of thestickyChannel3Overcurrentrecord component.booleanReturns the value of thestickyChannel4Overcurrentrecord component.booleanReturns the value of thestickyChannel5Overcurrentrecord component.booleanReturns the value of thestickyFirmwareFaultrecord component.booleanReturns the value of thestickyHardwareFaultrecord component.booleanReturns the value of thestickyHasResetrecord component.booleanReturns the value of thestickyLowBatteryFaultrecord component.booleanReturns the value of thestickyRegulatorPowerGoodFaultrecord 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 regulatorPowerGoodFault, boolean brownout, boolean canWarning, boolean canBusOff, boolean hardwareFault, boolean firmwareFault, boolean hasReset, boolean lowBatteryFault, boolean channel0Overcurrent, boolean channel1Overcurrent, boolean channel2Overcurrent, boolean channel3Overcurrent, boolean channel4Overcurrent, boolean channel5Overcurrent, boolean stickyRegulatorPowerGoodFault, boolean stickyBrownout, boolean stickyCanWarning, boolean stickyCanBusOff, boolean stickyHardwareFault, boolean stickyFirmwareFault, boolean stickyHasReset, boolean stickyLowBatteryFault, boolean stickyChannel0Overcurrent, boolean stickyChannel1Overcurrent, boolean stickyChannel2Overcurrent, boolean stickyChannel3Overcurrent, boolean stickyChannel4Overcurrent, boolean stickyChannel5Overcurrent, int revlibError, long timestamp) Creates an instance of aPeriodicStatus1record class.- Parameters:
regulatorPowerGoodFault- the value for theregulatorPowerGoodFaultrecord componentbrownout- the value for thebrownoutrecord componentcanWarning- the value for thecanWarningrecord componentcanBusOff- the value for thecanBusOffrecord componenthardwareFault- the value for thehardwareFaultrecord componentfirmwareFault- the value for thefirmwareFaultrecord componenthasReset- the value for thehasResetrecord componentlowBatteryFault- the value for thelowBatteryFaultrecord componentchannel0Overcurrent- the value for thechannel0Overcurrentrecord componentchannel1Overcurrent- the value for thechannel1Overcurrentrecord componentchannel2Overcurrent- the value for thechannel2Overcurrentrecord componentchannel3Overcurrent- the value for thechannel3Overcurrentrecord componentchannel4Overcurrent- the value for thechannel4Overcurrentrecord componentchannel5Overcurrent- the value for thechannel5Overcurrentrecord componentstickyRegulatorPowerGoodFault- the value for thestickyRegulatorPowerGoodFaultrecord componentstickyBrownout- the value for thestickyBrownoutrecord componentstickyCanWarning- the value for thestickyCanWarningrecord componentstickyCanBusOff- the value for thestickyCanBusOffrecord componentstickyHardwareFault- the value for thestickyHardwareFaultrecord componentstickyFirmwareFault- the value for thestickyFirmwareFaultrecord componentstickyHasReset- the value for thestickyHasResetrecord componentstickyLowBatteryFault- the value for thestickyLowBatteryFaultrecord componentstickyChannel0Overcurrent- the value for thestickyChannel0Overcurrentrecord componentstickyChannel1Overcurrent- the value for thestickyChannel1Overcurrentrecord componentstickyChannel2Overcurrent- the value for thestickyChannel2Overcurrentrecord componentstickyChannel3Overcurrent- the value for thestickyChannel3Overcurrentrecord componentstickyChannel4Overcurrent- the value for thestickyChannel4Overcurrentrecord componentstickyChannel5Overcurrent- the value for thestickyChannel5Overcurrentrecord 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. -
regulatorPowerGoodFault
public boolean regulatorPowerGoodFault()Returns the value of theregulatorPowerGoodFaultrecord component.- Returns:
- the value of the
regulatorPowerGoodFaultrecord component
-
brownout
public boolean brownout()Returns the value of thebrownoutrecord component.- Returns:
- the value of the
brownoutrecord component
-
canWarning
public boolean canWarning()Returns the value of thecanWarningrecord component.- Returns:
- the value of the
canWarningrecord component
-
canBusOff
public boolean canBusOff()Returns the value of thecanBusOffrecord component.- Returns:
- the value of the
canBusOffrecord component
-
hardwareFault
public boolean hardwareFault()Returns the value of thehardwareFaultrecord component.- Returns:
- the value of the
hardwareFaultrecord component
-
firmwareFault
public boolean firmwareFault()Returns the value of thefirmwareFaultrecord component.- Returns:
- the value of the
firmwareFaultrecord component
-
hasReset
public boolean hasReset()Returns the value of thehasResetrecord component.- Returns:
- the value of the
hasResetrecord component
-
lowBatteryFault
public boolean lowBatteryFault()Returns the value of thelowBatteryFaultrecord component.- Returns:
- the value of the
lowBatteryFaultrecord component
-
channel0Overcurrent
public boolean channel0Overcurrent()Returns the value of thechannel0Overcurrentrecord component.- Returns:
- the value of the
channel0Overcurrentrecord component
-
channel1Overcurrent
public boolean channel1Overcurrent()Returns the value of thechannel1Overcurrentrecord component.- Returns:
- the value of the
channel1Overcurrentrecord component
-
channel2Overcurrent
public boolean channel2Overcurrent()Returns the value of thechannel2Overcurrentrecord component.- Returns:
- the value of the
channel2Overcurrentrecord component
-
channel3Overcurrent
public boolean channel3Overcurrent()Returns the value of thechannel3Overcurrentrecord component.- Returns:
- the value of the
channel3Overcurrentrecord component
-
channel4Overcurrent
public boolean channel4Overcurrent()Returns the value of thechannel4Overcurrentrecord component.- Returns:
- the value of the
channel4Overcurrentrecord component
-
channel5Overcurrent
public boolean channel5Overcurrent()Returns the value of thechannel5Overcurrentrecord component.- Returns:
- the value of the
channel5Overcurrentrecord component
-
stickyRegulatorPowerGoodFault
public boolean stickyRegulatorPowerGoodFault()Returns the value of thestickyRegulatorPowerGoodFaultrecord component.- Returns:
- the value of the
stickyRegulatorPowerGoodFaultrecord component
-
stickyBrownout
public boolean stickyBrownout()Returns the value of thestickyBrownoutrecord component.- Returns:
- the value of the
stickyBrownoutrecord component
-
stickyCanWarning
public boolean stickyCanWarning()Returns the value of thestickyCanWarningrecord component.- Returns:
- the value of the
stickyCanWarningrecord component
-
stickyCanBusOff
public boolean stickyCanBusOff()Returns the value of thestickyCanBusOffrecord component.- Returns:
- the value of the
stickyCanBusOffrecord component
-
stickyHardwareFault
public boolean stickyHardwareFault()Returns the value of thestickyHardwareFaultrecord component.- Returns:
- the value of the
stickyHardwareFaultrecord component
-
stickyFirmwareFault
public boolean stickyFirmwareFault()Returns the value of thestickyFirmwareFaultrecord component.- Returns:
- the value of the
stickyFirmwareFaultrecord component
-
stickyHasReset
public boolean stickyHasReset()Returns the value of thestickyHasResetrecord component.- Returns:
- the value of the
stickyHasResetrecord component
-
stickyLowBatteryFault
public boolean stickyLowBatteryFault()Returns the value of thestickyLowBatteryFaultrecord component.- Returns:
- the value of the
stickyLowBatteryFaultrecord component
-
stickyChannel0Overcurrent
public boolean stickyChannel0Overcurrent()Returns the value of thestickyChannel0Overcurrentrecord component.- Returns:
- the value of the
stickyChannel0Overcurrentrecord component
-
stickyChannel1Overcurrent
public boolean stickyChannel1Overcurrent()Returns the value of thestickyChannel1Overcurrentrecord component.- Returns:
- the value of the
stickyChannel1Overcurrentrecord component
-
stickyChannel2Overcurrent
public boolean stickyChannel2Overcurrent()Returns the value of thestickyChannel2Overcurrentrecord component.- Returns:
- the value of the
stickyChannel2Overcurrentrecord component
-
stickyChannel3Overcurrent
public boolean stickyChannel3Overcurrent()Returns the value of thestickyChannel3Overcurrentrecord component.- Returns:
- the value of the
stickyChannel3Overcurrentrecord component
-
stickyChannel4Overcurrent
public boolean stickyChannel4Overcurrent()Returns the value of thestickyChannel4Overcurrentrecord component.- Returns:
- the value of the
stickyChannel4Overcurrentrecord component
-
stickyChannel5Overcurrent
public boolean stickyChannel5Overcurrent()Returns the value of thestickyChannel5Overcurrentrecord component.- Returns:
- the value of the
stickyChannel5Overcurrentrecord 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
-