Record Class A301.PeriodicStatus0
java.lang.Object
java.lang.Record
com.revrobotics.spark.A301.PeriodicStatus0
- All Implemented Interfaces:
StatusFrame
- Enclosing class:
A301
public static record A301.PeriodicStatus0(double appliedOutput, double voltage, double current, int motorTemperature, boolean inverted, boolean relativeHeartbeatLock, int gearboxRPM, int revlibError, long timestamp)
extends Record
implements StatusFrame
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus0(double appliedOutput, double voltage, double current, int motorTemperature, boolean inverted, boolean relativeHeartbeatLock, int gearboxRPM, int revlibError, long timestamp) Creates an instance of aPeriodicStatus0record class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theappliedOutputrecord component.doublecurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegearboxRPMrecord component.final inthashCode()Returns a hash code value for this object.booleaninverted()Returns the value of theinvertedrecord component.intReturns the value of themotorTemperaturerecord component.booleanReturns the value of therelativeHeartbeatLockrecord component.intReturns the value of therevlibErrorrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.doublevoltage()Returns the value of thevoltagerecord component.Methods inherited from interface StatusFrame
getRevlibError
-
Constructor Details
-
PeriodicStatus0
public PeriodicStatus0(double appliedOutput, double voltage, double current, int motorTemperature, boolean inverted, boolean relativeHeartbeatLock, int gearboxRPM, int revlibError, long timestamp) Creates an instance of aPeriodicStatus0record class.- Parameters:
appliedOutput- the value for theappliedOutputrecord componentvoltage- the value for thevoltagerecord componentcurrent- the value for thecurrentrecord componentmotorTemperature- the value for themotorTemperaturerecord componentinverted- the value for theinvertedrecord componentrelativeHeartbeatLock- the value for therelativeHeartbeatLockrecord componentgearboxRPM- the value for thegearboxRPMrecord 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. -
appliedOutput
public double appliedOutput()Returns the value of theappliedOutputrecord component.- Returns:
- the value of the
appliedOutputrecord component
-
voltage
public double voltage()Returns the value of thevoltagerecord component.- Returns:
- the value of the
voltagerecord component
-
current
public double current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
motorTemperature
public int motorTemperature()Returns the value of themotorTemperaturerecord component.- Returns:
- the value of the
motorTemperaturerecord component
-
inverted
public boolean inverted()Returns the value of theinvertedrecord component.- Returns:
- the value of the
invertedrecord component
-
relativeHeartbeatLock
public boolean relativeHeartbeatLock()Returns the value of therelativeHeartbeatLockrecord component.- Returns:
- the value of the
relativeHeartbeatLockrecord component
-
gearboxRPM
public int gearboxRPM()Returns the value of thegearboxRPMrecord component.- Returns:
- the value of the
gearboxRPMrecord 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
-