Package yams.telemetry
Class SmartMotorControllerTelemetry
java.lang.Object
yams.telemetry.SmartMotorControllerTelemetry
Smart motor controller telemetry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBoolean telemetry forSmartMotorControllersstatic enumDouble telemetry field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTuningValues(SmartMotorController smartMotorController) Apply the tuning values fromNetworkTableto theSmartMotorControllervoidclose()Close and unpublish telemetry.voidPublishSmartMotorControllertelemetry toNetworkTablevoidsetupTelemetry(SmartMotorController smartMotorController, NetworkTable publishTable, NetworkTable tuningTable, SmartMotorControllerTelemetryConfig config) Setup Telemetry Pub/Sub fields.booleanWhether or not tuning is enabled.
-
Constructor Details
-
SmartMotorControllerTelemetry
public SmartMotorControllerTelemetry()
-
-
Method Details
-
setupTelemetry
public void setupTelemetry(SmartMotorController smartMotorController, NetworkTable publishTable, NetworkTable tuningTable, SmartMotorControllerTelemetryConfig config) Setup Telemetry Pub/Sub fields.- Parameters:
smartMotorController-SmartMotorControllerused to determine what telemetry features can and should be disabled bc they are not available.publishTable-NetworkTablethat holds all of the output fields.tuningTable-NetworkTablethat holds all of the tuning fields.config-SmartMotorControllerTelemetryConfigto apply.
-
publish
PublishSmartMotorControllertelemetry toNetworkTable- Parameters:
smc- Smart motor controller to publish telemetry for.
-
applyTuningValues
Apply the tuning values fromNetworkTableto theSmartMotorController- Parameters:
smartMotorController-SmartMotorControllerto control.
-
close
public void close()Close and unpublish telemetry. -
tuningEnabled
public boolean tuningEnabled()Whether or not tuning is enabled.
-