|
RobotCore 1.0
WPILib port to raspberry Pi
|
Static Public Member Functions | |
| static String | getUnitMetadata (Unit unit) |
| static String | getUnitMetadata (String unitSymbol) |
| static void | log (TelemetryTable table, String name, Measure<?> value) |
| static void | log (TelemetryTable table, String name, double value, Unit unit) |
| static void | log (TelemetryTable table, String name, double value, String unitSymbol) |
| static void | log (TelemetryTable table, String name, int value, Unit unit) |
| static void | log (TelemetryTable table, String name, long value, Unit unit) |
Utility functions for logging unit-bearing values to telemetry.
Definition at line 16 of file UnitTelemetry.java.
|
static |
Returns JSON-encoded unit metadata for the given unit symbol.
The returned string is suitable for use as the unit telemetry property value.
| unitSymbol | unit symbol |
Definition at line 53 of file UnitTelemetry.java.
|
static |
Returns JSON-encoded unit metadata for the given unit.
The returned string is suitable for use as the unit telemetry property value.
| unit | unit |
Definition at line 33 of file UnitTelemetry.java.
|
static |
Logs a double value with unit metadata.
| table | telemetry table |
| name | entry name |
| value | value in the given unit |
| unitSymbol | unit symbol |
Definition at line 103 of file UnitTelemetry.java.
|
static |
Logs a double value with unit metadata.
This logs the value in terms of the given unit's base unit.
| table | telemetry table |
| name | entry name |
| value | value in the given unit |
| unit | value unit |
Definition at line 90 of file UnitTelemetry.java.
|
static |
Logs an int value with unit metadata.
This logs the value in terms of the given unit's base unit.
| table | telemetry table |
| name | entry name |
| value | value in the given unit |
| unit | value unit |
Definition at line 118 of file UnitTelemetry.java.
|
static |
Logs a long value with unit metadata.
This logs the value in terms of the given unit's base unit.
| table | telemetry table |
| name | entry name |
| value | value in the given unit |
| unit | value unit |
Definition at line 132 of file UnitTelemetry.java.
|
static |
Logs a measure with unit metadata.
This logs the measure in terms of its base unit.
| table | telemetry table |
| name | entry name |
| value | measure value |
Definition at line 74 of file UnitTelemetry.java.