Record Class Navx.SelfTestResult
java.lang.Object
java.lang.Record
com.studica.frc.Navx.SelfTestResult
- Record Components:
gyro- overall gyroscope resultgyroX- gyroscope X axis resultgyroY- gyroscope Y axis resultgyroZ- gyroscope Z axis resultaccel- overall accelerometer resultaccelX- accelerometer X axis resultaccelY- accelerometer Y axis resultaccelZ- accelerometer Z axis result
- Enclosing class:
Navx
public static record Navx.SelfTestResult(int gyro, int gyroX, int gyroY, int gyroZ, int accel, int accelX, int accelY, int accelZ)
extends Record
Raw self-test codes as reported by the IMU.
-
Constructor Summary
ConstructorsConstructorDescriptionSelfTestResult(int gyro, int gyroX, int gyroY, int gyroZ, int accel, int accelX, int accelY, int accelZ) Creates an instance of aSelfTestResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccel()Returns the value of theaccelrecord component.intaccelX()Returns the value of theaccelXrecord component.intaccelY()Returns the value of theaccelYrecord component.intaccelZ()Returns the value of theaccelZrecord component.final booleanIndicates whether some other object is "equal to" this one.intgyro()Returns the value of thegyrorecord component.intgyroX()Returns the value of thegyroXrecord component.intgyroY()Returns the value of thegyroYrecord component.intgyroZ()Returns the value of thegyroZrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SelfTestResult
public SelfTestResult(int gyro, int gyroX, int gyroY, int gyroZ, int accel, int accelX, int accelY, int accelZ) Creates an instance of aSelfTestResultrecord class.- Parameters:
gyro- the value for thegyrorecord componentgyroX- the value for thegyroXrecord componentgyroY- the value for thegyroYrecord componentgyroZ- the value for thegyroZrecord componentaccel- the value for theaccelrecord componentaccelX- the value for theaccelXrecord componentaccelY- the value for theaccelYrecord componentaccelZ- the value for theaccelZrecord 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. -
gyro
-
gyroX
-
gyroY
-
gyroZ
-
accel
-
accelX
-
accelY
-
accelZ
-