Package yams.telemetry
Class SmartMotorControllerTelemetryConfig
java.lang.Object
yams.telemetry.SmartMotorControllerTelemetryConfig
Smart motor controller telemetry configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the configured bool fields.Get the configured double fields.Enables the arm feedforward logging if available.Enables the elevator feedforward logging if available.Enables the distance logging if available.Enables the linear velocity logging if available.Enables the mechanism lower limit logging if available.Enables the mechanism position logging if available.Enables the mechanism upper limit logging if available.Enables the mechanism velocity logging if available.Enables the motion profile logging if available.Enables the output voltage logging if available.Enables the rotor position logging if available.Enables the rotor velocity logging if available.Enables the setpoint position logging if available.Enables the setpoint velocity logging if available.Enables the simple feedforward logging if available.Enables the stator current logging if available.Enables the temperature logging if available.Enables the temperature limit logging if available.Enables the velocity control mode logging if available.
-
Constructor Details
-
SmartMotorControllerTelemetryConfig
public SmartMotorControllerTelemetryConfig()
-
-
Method Details
-
withTelemetryVerbosity
public SmartMotorControllerTelemetryConfig withTelemetryVerbosity(SmartMotorControllerConfig.TelemetryVerbosity verbosity) - Parameters:
verbosity-SmartMotorControllerConfig.TelemetryVerbosityto use.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
getDoubleFields
public Map<SmartMotorControllerTelemetry.DoubleTelemetryField,DoubleTelemetry> getDoubleFields(SmartMotorController smc) Get the configured double fields.- Parameters:
smc-SmartMotorControllerused to disable unavailable telemetry for certain motor controllers.- Returns:
- Configured
DoubleTelemetryfor eachSmartMotorControllerTelemetry.DoubleTelemetryField
-
getBoolFields
public Map<SmartMotorControllerTelemetry.BooleanTelemetryField,BooleanTelemetry> getBoolFields(SmartMotorController smc) Get the configured bool fields.- Parameters:
smc-SmartMotorControllerused to disable unavailable telemetry for certain motor controllers.- Returns:
- Configured
BooleanTelemetryfor eachSmartMotorControllerTelemetry.BooleanTelemetryField.
-
withMechanismLowerLimit
Enables the mechanism lower limit logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withMechanismUpperLimit
Enables the mechanism upper limit logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withTemperatureLimit
Enables the temperature limit logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withVelocityControl
Enables the velocity control mode logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withElevatorFeedforward
Enables the elevator feedforward logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withArmFeedforward
Enables the arm feedforward logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withSimpleFeedforward
Enables the simple feedforward logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withMotionProfile
Enables the motion profile logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withSetpointPosition
Enables the setpoint position logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withSetpointVelocity
Enables the setpoint velocity logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withOutputVoltage
Enables the output voltage logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withStatorCurrent
Enables the stator current logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withTemperature
Enables the temperature logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withMeasurementPosition
Enables the distance logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withMeasurementVelocity
Enables the linear velocity logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withMechanismPosition
Enables the mechanism position logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withMechanismVelocity
Enables the mechanism velocity logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withRotorPosition
Enables the rotor position logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-
withRotorVelocity
Enables the rotor velocity logging if available.- Returns:
SmartMotorControllerTelemetryConfigfor chaining.
-