Class NetworkTablesBackends

java.lang.Object
yams.core.telemetry.NetworkTablesBackends

public final class NetworkTablesBackends extends Object
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 Type
    Method
    Description
    static void
    Ensure a TelemetryRegistry backend is registered at /Mechanisms that publishes directly to that NetworkTables root, for TelemetryLoggable objects such as Mechanism2d.
    static void
    Ensure a TunableRegistry backend is registered at /Mechanisms that publishes directly to that NetworkTables root, for ComplexTunable objects such as Field2d or on-dashboard Commands.
    static void
    Ensure a TunableRegistry backend is registered at /Tuning that publishes directly to that NetworkTables root, for ComplexTunable on-dashboard Commands such as the Live Tuning command.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ensureMechanismsTelemetryBackend

      public static void ensureMechanismsTelemetryBackend()
      Ensure a TelemetryRegistry backend is registered at /Mechanisms that publishes directly to that NetworkTables root, for TelemetryLoggable objects such as Mechanism2d.
    • ensureMechanismsTunableBackend

      public static void ensureMechanismsTunableBackend()
      Ensure a TunableRegistry backend is registered at /Mechanisms that publishes directly to that NetworkTables root, for ComplexTunable objects such as Field2d or on-dashboard Commands.
    • ensureTuningTunableBackend

      public static void ensureTuningTunableBackend()
      Ensure a TunableRegistry backend is registered at /Tuning that publishes directly to that NetworkTables root, for ComplexTunable on-dashboard Commands such as the Live Tuning command.