Record Class SparkLowLevel.PeriodicStatus6
java.lang.Object
java.lang.Record
com.revrobotics.spark.SparkLowLevel.PeriodicStatus6
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
SparkLowLevel
public static record SparkLowLevel.PeriodicStatus6(double unadjustedDutyCycle, double dutyCyclePeriod, boolean dutyCycleNoSignal, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus6(double unadjustedDutyCycle, double dutyCyclePeriod, boolean dutyCycleNoSignal, int revlibError, long timestamp) Creates an instance of aPeriodicStatus6record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedutyCycleNoSignalrecord component.doubleReturns the value of thedutyCyclePeriodrecord 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.doubleReturns the value of theunadjustedDutyCyclerecord component.Methods inherited from interface StatusFrame
getRevlibError
-
Constructor Details
-
PeriodicStatus6
public PeriodicStatus6(double unadjustedDutyCycle, double dutyCyclePeriod, boolean dutyCycleNoSignal, int revlibError, long timestamp) Creates an instance of aPeriodicStatus6record class.- Parameters:
unadjustedDutyCycle- the value for theunadjustedDutyCyclerecord componentdutyCyclePeriod- the value for thedutyCyclePeriodrecord componentdutyCycleNoSignal- the value for thedutyCycleNoSignalrecord 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. -
unadjustedDutyCycle
public double unadjustedDutyCycle()Returns the value of theunadjustedDutyCyclerecord component.- Returns:
- the value of the
unadjustedDutyCyclerecord component
-
dutyCyclePeriod
public double dutyCyclePeriod()Returns the value of thedutyCyclePeriodrecord component.- Returns:
- the value of the
dutyCyclePeriodrecord component
-
dutyCycleNoSignal
public boolean dutyCycleNoSignal()Returns the value of thedutyCycleNoSignalrecord component.- Returns:
- the value of the
dutyCycleNoSignalrecord 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
-