Class NetworkTablesBackends
java.lang.Object
yams.core.telemetry.NetworkTablesBackends
Registers
TelemetryRegistry and TunableRegistry backends that publish directly
under the Mechanisms and Tuning NetworkTables roots so the same roots
MechanismTelemetry and SmartMotorControllerTelemetry already publish raw
NetworkTables data to instead of the default /Telemetry and /Tunables roots.
This keeps dashboard-facing widgets (Mechanism2d, Field2d, on-dashboard
commands) in the same NetworkTables subtree as the rest of a mechanism's telemetry/tuning data.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnsure aTelemetryRegistrybackend is registered at/Mechanismsthat publishes directly to that NetworkTables root, forTelemetryLoggableobjects such asMechanism2d.static voidEnsure aTunableRegistrybackend is registered at/Mechanismsthat publishes directly to that NetworkTables root, forComplexTunableobjects such asField2dor on-dashboardCommands.static voidEnsure aTunableRegistrybackend is registered at/Tuningthat publishes directly to that NetworkTables root, forComplexTunableon-dashboardCommands such as the Live Tuning command.
-
Method Details
-
ensureMechanismsTelemetryBackend
public static void ensureMechanismsTelemetryBackend()Ensure aTelemetryRegistrybackend is registered at/Mechanismsthat publishes directly to that NetworkTables root, forTelemetryLoggableobjects such asMechanism2d. -
ensureMechanismsTunableBackend
public static void ensureMechanismsTunableBackend()Ensure aTunableRegistrybackend is registered at/Mechanismsthat publishes directly to that NetworkTables root, forComplexTunableobjects such asField2dor on-dashboardCommands. -
ensureTuningTunableBackend
public static void ensureTuningTunableBackend()Ensure aTunableRegistrybackend is registered at/Tuningthat publishes directly to that NetworkTables root, forComplexTunableon-dashboardCommands such as the Live Tuning command.
-