Class TalonFXInputs
java.lang.Object
com.stuypulse.robot.util.talonfx.logged.TalonFXInputs
- All Implemented Interfaces:
Cloneable, org.littletonrobotics.junction.inputs.LoggableInputs
public class TalonFXInputs
extends Object
implements org.littletonrobotics.junction.inputs.LoggableInputs, Cloneable
TalonFX Inputs
Contains logged data collected from a LoggedTalonFX.
A TalonFXInputs instance is typically stored as a field in a subsystem's
IOInputs class:
@AutoLog
public static class IntakeIOInputs {
public TalonFXInputsAutoLogged pivotSignals = new TalonFXInputsAutoLogged();
public TalonFXInputsAutoLogged rollerSignals = new TalonFXInputsAutoLogged();
}
The values are populated by LoggedTalonFX.updateInputs(TalonFXInputs).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.wpilib.units.measure.Voltagebooleanorg.wpilib.units.measure.Angleorg.wpilib.units.measure.Currentorg.wpilib.units.measure.Currentorg.wpilib.units.measure.Temperatureorg.wpilib.units.measure.AngularVelocity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidfromLog(org.littletonrobotics.junction.LogTable table) <T> TgetAdditionalSignal(String name, Class<T> type) Returns the value of an additional logged StatusSignal, or null if signal is not logged.(package private) voidrecordAdditionalSignal(String name, Object value) Records additional StatusSignals to be logged.voidtoLog(org.littletonrobotics.junction.LogTable table)
-
Field Details
-
connected
-
supplyCurrent
-
statorCurrent
-
temperature
-
position
-
appliedVoltage
-
velocity
-
additionalSignalValues
-
-
Constructor Details
-
TalonFXInputs
public TalonFXInputs()
-
-
Method Details
-
recordAdditionalSignal
Records additional StatusSignals to be logged.- Parameters:
name- The name of the signal to log.value- The value of the signal to log.
-
getAdditionalSignal
Returns the value of an additional logged StatusSignal, or null if signal is not logged.- Type Parameters:
T- The type of the signal value.- Parameters:
name- The name of the StatusSignal to retrieve.type- The type of the signal value.- Returns:
- The value of the signal, or null if not logged.
-
toLog
- Specified by:
toLogin interfaceorg.littletonrobotics.junction.inputs.LoggableInputs
-
fromLog
- Specified by:
fromLogin interfaceorg.littletonrobotics.junction.inputs.LoggableInputs
-
clone
-