Package com.cdarobotics.cdalib.telemetry
Class Entry
java.lang.Object
com.cdarobotics.cdalib.telemetry.Entry
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Entry
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
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
- Returns:
- the label shown for this entry.
-
getValue
- Returns:
- the current value, re-fetched from the supplier on each call.
-
getTag
- Returns:
- the group tag this entry belongs to.
-