Class Entry

java.lang.Object
com.cdarobotics.cdalib.telemetry.Entry

public class Entry extends Object
A single telemetry line: a label paired with a Supplier whose value is fetched fresh each time the entry is displayed, grouped under a tag for selective display by TelemetryManager.
  • Constructor Details

    • Entry

      public Entry(String tag, String label, Supplier<String> supplier)
      Creates an entry with an explicit group tag.
      Parameters:
      tag - the group this entry belongs to, used to filter what gets displayed.
      label - the label shown for this entry.
      supplier - supplies the current value each time the entry is displayed.
    • Entry

      public Entry(String label, Supplier<String> supplier)
      Creates an entry in the "default" group.
      Parameters:
      label - the label shown for this entry.
      supplier - supplies the current value each time the entry is displayed.
  • Method Details

    • getLabel

      public String getLabel()
      Returns:
      the label shown for this entry.
    • getValue

      public String getValue()
      Returns:
      the current value, re-fetched from the supplier on each call.
    • getTag

      public String getTag()
      Returns:
      the group tag this entry belongs to.