Class EpilogueTelemetry

java.lang.Object
org.wpilib.epilogue.EpilogueTelemetry

public final class EpilogueTelemetry extends Object
Utility functions for generated Epilogue telemetry loggers.
  • Method Details

    • getUnitMetadata

      public static String getUnitMetadata(Unit unit)
      Returns JSON-encoded unit metadata for the given unit.

      The returned string is suitable for use as the unit telemetry property value.

      Parameters:
      unit - unit
      Returns:
      JSON-encoded unit metadata
    • getUnitMetadata

      public static String getUnitMetadata(String unitSymbol)
      Returns JSON-encoded unit metadata for the given unit symbol.

      The returned string is suitable for use as the unit telemetry property value.

      Parameters:
      unitSymbol - unit symbol
      Returns:
      JSON-encoded unit metadata
    • logMeasure

      public static void logMeasure(TelemetryTable table, String name, Measure<?> value)
      Logs a measure with unit metadata.

      This logs the measure in terms of its base unit.

      Parameters:
      table - telemetry table
      name - entry name
      value - measure value