Class ModuleIO.ModuleIOInputs
java.lang.Object
frc.robot.subsystems.drive.module.ModuleIO.ModuleIOInputs
- Enclosing interface:
- ModuleIO
Contains all of the inputs received from the module hardware.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe voltage currently being applied to the drive motor.booleanWhether the drive motor controller is currently connected.The current being drawn by the drive motor.booleanWhether the drive motor is functioning correctly.The current position of the drive motor in radians.int[]The full status of the drive motor controller.The current velocity of the drive motor in radians per second.double[]Drive positions for odometry measurements.double[]Timestamps for odometry measurements.double[]Turn positions for odometry measurements.The voltage currently being applied to the turn motor.booleanWhether the turn motor controller is currently connected.The current being drawn by the turn motor.booleanWhether the turn encoder is currently connected.booleanWhether the turn motor is functioning correctly.The current position of the turn motor in radians.int[]The full status of the turn motor controller.The current velocity of the turn motor in radians per second. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
driveConnected
public boolean driveConnectedWhether the drive motor controller is currently connected. -
drivePosition
The current position of the drive motor in radians. -
driveVelocity
The current velocity of the drive motor in radians per second. -
driveAppliedVoltage
The voltage currently being applied to the drive motor. -
driveCurrent
The current being drawn by the drive motor. -
driveHealthy
public boolean driveHealthyWhether the drive motor is functioning correctly. -
driveStatus
public int[] driveStatusThe full status of the drive motor controller. -
turnConnected
public boolean turnConnectedWhether the turn motor controller is currently connected. -
turnPosition
The current position of the turn motor in radians. -
turnVelocity
The current velocity of the turn motor in radians per second. -
turnAppliedVoltage
The voltage currently being applied to the turn motor. -
turnCurrent
The current being drawn by the turn motor. -
turnHealthy
public boolean turnHealthyWhether the turn motor is functioning correctly. -
turnStatus
public int[] turnStatusThe full status of the turn motor controller. -
turnEncoderConnected
public boolean turnEncoderConnectedWhether the turn encoder is currently connected. -
odometryTimestamps
public double[] odometryTimestampsTimestamps for odometry measurements. -
odometryDrivePositionsRad
public double[] odometryDrivePositionsRadDrive positions for odometry measurements. -
odometryTurnPositionsRad
public double[] odometryTurnPositionsRadTurn positions for odometry measurements.
-
-
Constructor Details
-
ModuleIOInputs
public ModuleIOInputs()
-