Record Class ServoHubLowLevel.PeriodicStatus4
java.lang.Object
java.lang.Record
com.revrobotics.servohub.ServoHubLowLevel.PeriodicStatus4
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
ServoHubLowLevel
public static record ServoHubLowLevel.PeriodicStatus4(double channel0Current, double channel1Current, double channel2Current, double channel3Current, double channel4Current, double channel5Current, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus4(double channel0Current, double channel1Current, double channel2Current, double channel3Current, double channel4Current, double channel5Current, int revlibError, long timestamp) Creates an instance of aPeriodicStatus4record class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thechannel0Currentrecord component.doubleReturns the value of thechannel1Currentrecord component.doubleReturns the value of thechannel2Currentrecord component.doubleReturns the value of thechannel3Currentrecord component.doubleReturns the value of thechannel4Currentrecord component.doubleReturns the value of thechannel5Currentrecord 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
-
PeriodicStatus4
public PeriodicStatus4(double channel0Current, double channel1Current, double channel2Current, double channel3Current, double channel4Current, double channel5Current, int revlibError, long timestamp) Creates an instance of aPeriodicStatus4record class.- Parameters:
channel0Current- the value for thechannel0Currentrecord componentchannel1Current- the value for thechannel1Currentrecord componentchannel2Current- the value for thechannel2Currentrecord componentchannel3Current- the value for thechannel3Currentrecord componentchannel4Current- the value for thechannel4Currentrecord componentchannel5Current- the value for thechannel5Currentrecord 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. -
channel0Current
public double channel0Current()Returns the value of thechannel0Currentrecord component.- Returns:
- the value of the
channel0Currentrecord component
-
channel1Current
public double channel1Current()Returns the value of thechannel1Currentrecord component.- Returns:
- the value of the
channel1Currentrecord component
-
channel2Current
public double channel2Current()Returns the value of thechannel2Currentrecord component.- Returns:
- the value of the
channel2Currentrecord component
-
channel3Current
public double channel3Current()Returns the value of thechannel3Currentrecord component.- Returns:
- the value of the
channel3Currentrecord component
-
channel4Current
public double channel4Current()Returns the value of thechannel4Currentrecord component.- Returns:
- the value of the
channel4Currentrecord component
-
channel5Current
public double channel5Current()Returns the value of thechannel5Currentrecord component.- Returns:
- the value of the
channel5Currentrecord 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
-