Record Class ImuMountCheck.Inputs
java.lang.Object
java.lang.Record
frc.spectrumLib.localization.ImuMountCheck.Inputs
- Record Components:
time- secondswheelsOk- every module connected, so the wheel velocity is realvx- wheel-measured robot-relative velocity, m/svy- wheel-measured robot-relative velocity, m/somega- wheel-measured turn rate, rad/spigeonOk- Pigeon connectedpigeonYaw- radianspigeonPitchDeg- mount-correctedpigeonRollDeg- mount-correctedpigeonAccelXG- gpigeonAccelYG- gimuPresent- onboard IMU read this loopimuYaw- radians, after WPILib's mount orientationimuAccelX- raw, m/s^2imuAccelY- raw, m/s^2imuAccelZ- raw, m/s^2
- Enclosing class:
ImuMountCheck
public static record ImuMountCheck.Inputs(double time, boolean wheelsOk, double vx, double vy, double omega, boolean pigeonOk, double pigeonYaw, double pigeonPitchDeg, double pigeonRollDeg, double pigeonAccelXG, double pigeonAccelYG, boolean imuPresent, double imuYaw, double imuAccelX, double imuAccelY, double imuAccelZ)
extends Record
One loop's readings.
-
Constructor Summary
ConstructorsConstructorDescriptionInputs(double time, boolean wheelsOk, double vx, double vy, double omega, boolean pigeonOk, double pigeonYaw, double pigeonPitchDeg, double pigeonRollDeg, double pigeonAccelXG, double pigeonAccelYG, boolean imuPresent, double imuYaw, double imuAccelX, double imuAccelY, double imuAccelZ) Creates an instance of aInputsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theimuAccelXrecord component.doubleReturns the value of theimuAccelYrecord component.doubleReturns the value of theimuAccelZrecord component.booleanReturns the value of theimuPresentrecord component.doubleimuYaw()Returns the value of theimuYawrecord component.doubleomega()Returns the value of theomegarecord component.doubleReturns the value of thepigeonAccelXGrecord component.doubleReturns the value of thepigeonAccelYGrecord component.booleanpigeonOk()Returns the value of thepigeonOkrecord component.doubleReturns the value of thepigeonPitchDegrecord component.doubleReturns the value of thepigeonRollDegrecord component.doubleReturns the value of thepigeonYawrecord component.doubletime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.doublevx()Returns the value of thevxrecord component.doublevy()Returns the value of thevyrecord component.booleanwheelsOk()Returns the value of thewheelsOkrecord component.
-
Constructor Details
-
Inputs
public Inputs(double time, boolean wheelsOk, double vx, double vy, double omega, boolean pigeonOk, double pigeonYaw, double pigeonPitchDeg, double pigeonRollDeg, double pigeonAccelXG, double pigeonAccelYG, boolean imuPresent, double imuYaw, double imuAccelX, double imuAccelY, double imuAccelZ) Creates an instance of aInputsrecord class.- Parameters:
time- the value for thetimerecord componentwheelsOk- the value for thewheelsOkrecord componentvx- the value for thevxrecord componentvy- the value for thevyrecord componentomega- the value for theomegarecord componentpigeonOk- the value for thepigeonOkrecord componentpigeonYaw- the value for thepigeonYawrecord componentpigeonPitchDeg- the value for thepigeonPitchDegrecord componentpigeonRollDeg- the value for thepigeonRollDegrecord componentpigeonAccelXG- the value for thepigeonAccelXGrecord componentpigeonAccelYG- the value for thepigeonAccelYGrecord componentimuPresent- the value for theimuPresentrecord componentimuYaw- the value for theimuYawrecord componentimuAccelX- the value for theimuAccelXrecord componentimuAccelY- the value for theimuAccelYrecord componentimuAccelZ- the value for theimuAccelZrecord 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. -
time
-
wheelsOk
-
vx
-
vy
-
omega
-
pigeonOk
-
pigeonYaw
-
pigeonPitchDeg
public double pigeonPitchDeg()Returns the value of thepigeonPitchDegrecord component.- Returns:
- the value of the
pigeonPitchDegrecord component
-
pigeonRollDeg
public double pigeonRollDeg()Returns the value of thepigeonRollDegrecord component.- Returns:
- the value of the
pigeonRollDegrecord component
-
pigeonAccelXG
public double pigeonAccelXG()Returns the value of thepigeonAccelXGrecord component.- Returns:
- the value of the
pigeonAccelXGrecord component
-
pigeonAccelYG
public double pigeonAccelYG()Returns the value of thepigeonAccelYGrecord component.- Returns:
- the value of the
pigeonAccelYGrecord component
-
imuPresent
public boolean imuPresent()Returns the value of theimuPresentrecord component.- Returns:
- the value of the
imuPresentrecord component
-
imuYaw
-
imuAccelX
-
imuAccelY
-
imuAccelZ
-