Record Class ServoHubLowLevel.PeriodicStatus3
java.lang.Object
java.lang.Record
com.revrobotics.servohub.ServoHubLowLevel.PeriodicStatus3
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
ServoHubLowLevel
public static record ServoHubLowLevel.PeriodicStatus3(short channel3PulseWidth, short channel4PulseWidth, short channel5PulseWidth, boolean channel3Enabled, boolean channel4Enabled, boolean channel5Enabled, boolean channel3OutOfRange, boolean channel4OutOfRange, boolean channel5OutOfRange, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus3(short channel3PulseWidth, short channel4PulseWidth, short channel5PulseWidth, boolean channel3Enabled, boolean channel4Enabled, boolean channel5Enabled, boolean channel3OutOfRange, boolean channel4OutOfRange, boolean channel5OutOfRange, int revlibError, long timestamp) Creates an instance of aPeriodicStatus3record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thechannel3Enabledrecord component.booleanReturns the value of thechannel3OutOfRangerecord component.shortReturns the value of thechannel3PulseWidthrecord component.booleanReturns the value of thechannel4Enabledrecord component.booleanReturns the value of thechannel4OutOfRangerecord component.shortReturns the value of thechannel4PulseWidthrecord component.booleanReturns the value of thechannel5Enabledrecord component.booleanReturns the value of thechannel5OutOfRangerecord component.shortReturns the value of thechannel5PulseWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therevlibErrorrecord 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
-
PeriodicStatus3
public PeriodicStatus3(short channel3PulseWidth, short channel4PulseWidth, short channel5PulseWidth, boolean channel3Enabled, boolean channel4Enabled, boolean channel5Enabled, boolean channel3OutOfRange, boolean channel4OutOfRange, boolean channel5OutOfRange, int revlibError, long timestamp) Creates an instance of aPeriodicStatus3record class.- Parameters:
channel3PulseWidth- the value for thechannel3PulseWidthrecord componentchannel4PulseWidth- the value for thechannel4PulseWidthrecord componentchannel5PulseWidth- the value for thechannel5PulseWidthrecord componentchannel3Enabled- the value for thechannel3Enabledrecord componentchannel4Enabled- the value for thechannel4Enabledrecord componentchannel5Enabled- the value for thechannel5Enabledrecord componentchannel3OutOfRange- the value for thechannel3OutOfRangerecord componentchannel4OutOfRange- the value for thechannel4OutOfRangerecord componentchannel5OutOfRange- the value for thechannel5OutOfRangerecord 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. -
channel3PulseWidth
public short channel3PulseWidth()Returns the value of thechannel3PulseWidthrecord component.- Returns:
- the value of the
channel3PulseWidthrecord component
-
channel4PulseWidth
public short channel4PulseWidth()Returns the value of thechannel4PulseWidthrecord component.- Returns:
- the value of the
channel4PulseWidthrecord component
-
channel5PulseWidth
public short channel5PulseWidth()Returns the value of thechannel5PulseWidthrecord component.- Returns:
- the value of the
channel5PulseWidthrecord component
-
channel3Enabled
public boolean channel3Enabled()Returns the value of thechannel3Enabledrecord component.- Returns:
- the value of the
channel3Enabledrecord component
-
channel4Enabled
public boolean channel4Enabled()Returns the value of thechannel4Enabledrecord component.- Returns:
- the value of the
channel4Enabledrecord component
-
channel5Enabled
public boolean channel5Enabled()Returns the value of thechannel5Enabledrecord component.- Returns:
- the value of the
channel5Enabledrecord component
-
channel3OutOfRange
public boolean channel3OutOfRange()Returns the value of thechannel3OutOfRangerecord component.- Returns:
- the value of the
channel3OutOfRangerecord component
-
channel4OutOfRange
public boolean channel4OutOfRange()Returns the value of thechannel4OutOfRangerecord component.- Returns:
- the value of the
channel4OutOfRangerecord component
-
channel5OutOfRange
public boolean channel5OutOfRange()Returns the value of thechannel5OutOfRangerecord component.- Returns:
- the value of the
channel5OutOfRangerecord 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
-