Package frc.robot.devices.motor
Class MotorIO.MotorIOInputs
java.lang.Object
frc.robot.devices.motor.MotorIO.MotorIOInputs
- Enclosing interface:
- MotorIO
Container of motor state fields captured for telemetry. Units default to radians, seconds, Celsius, and Volts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionedu.wpi.first.units.measure.VoltageApplied voltage from the motor controller output stage.doubleBus voltage reported by the motor controller in volts.edu.wpi.first.units.measure.VoltageLast commanded voltage request (open-loop), if applicable.doubleMeasured mechanism position in degrees (post conversion).doubleMeasured mechanism position in radians (post conversion).doubleReported supply/phase current draw in amps.doubleLast commanded target position in radians, if applicable.doubleLast commanded target velocity in radians per second, if applicable.doubleMotor temperature in degrees Celsius.doubleMeasured motor shaft velocity in RPM (pre gear-reduction).doubleMeasured mechanism velocity in radians per second (post conversion). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
positionRadians
public double positionRadiansMeasured mechanism position in radians (post conversion). -
positionDegrees
public double positionDegreesMeasured mechanism position in degrees (post conversion). -
velocityRadPerSec
public double velocityRadPerSecMeasured mechanism velocity in radians per second (post conversion). -
velocityMotorRpm
public double velocityMotorRpmMeasured motor shaft velocity in RPM (pre gear-reduction). -
appliedVolts
public edu.wpi.first.units.measure.Voltage appliedVoltsApplied voltage from the motor controller output stage. -
busVoltageVolts
public double busVoltageVoltsBus voltage reported by the motor controller in volts. -
commandedVolts
public edu.wpi.first.units.measure.Voltage commandedVoltsLast commanded voltage request (open-loop), if applicable. -
supplyCurrentAmps
public double supplyCurrentAmpsReported supply/phase current draw in amps. -
temperatureCelsius
public double temperatureCelsiusMotor temperature in degrees Celsius. -
targetPositionRads
public double targetPositionRadsLast commanded target position in radians, if applicable. -
targetVelocityRadPerSec
public double targetVelocityRadPerSecLast commanded target velocity in radians per second, if applicable.
-
-
Constructor Details
-
MotorIOInputs
public MotorIOInputs()
-