Package frc.robot.subsystems.drive.gyro
Class GyroIO.GyroIOInputs
java.lang.Object
frc.robot.subsystems.drive.gyro.GyroIO.GyroIOInputs
- Enclosing interface:
- GyroIO
Contains all of the inputs received from the gyro hardware.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]The active faults associated with the gyro.booleanWhether the gyro is currently connected and communicating.booleanWhether the gyro is healthy.booleanWhether the gyro is ready for use.double[]Yaw positions corresponding to the timestamps inodometryYawTimestamps.double[]Timestamps for high-frequency yaw measurements used for odometry.The current pitch position from the gyro.The current angular velocity around the pitch axis.The current roll position from the gyro.The current angular velocity around the roll axis.int[]The sticky faults associated with the gyro.GyroType[]The types of gyros in use.The current yaw position from the gyro.The current angular velocity around the yaw axis. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
connected
public boolean connectedWhether the gyro is currently connected and communicating. -
locked
public boolean lockedWhether the gyro is ready for use. -
yawPosition
The current yaw position from the gyro. -
yawVelocity
The current angular velocity around the yaw axis. -
rollPosition
The current roll position from the gyro. -
pitchPosition
The current pitch position from the gyro. -
rollVelocity
The current angular velocity around the roll axis. -
pitchVelocity
The current angular velocity around the pitch axis. -
healthy
public boolean healthyWhether the gyro is healthy. -
types
The types of gyros in use. -
activeFaults
public int[] activeFaultsThe active faults associated with the gyro. -
stickyFaults
public int[] stickyFaultsThe sticky faults associated with the gyro. -
odometryYawTimestamps
public double[] odometryYawTimestampsTimestamps for high-frequency yaw measurements used for odometry.Measured in seconds via
RobotController.getFPGATime(). -
odometryYawPositions
public double[] odometryYawPositionsYaw positions corresponding to the timestamps inodometryYawTimestamps.Measured in radians.
-
-
Constructor Details
-
GyroIOInputs
public GyroIOInputs()
-