Gauges
Use gauges when the operator needs live vehicle state in the control page. Examples include speed, battery, hydraulic pressure, drive mode, autonomy state, or warnings from the vehicle controller.
Preferred portal/widget flow
In the portal-based operator experience, gauges should be configured as widgets on the operator page. The vehicle integration sends telemetry through OCP, and the operator page binds widget values to fields in that telemetry payload.
Typical flow:
-
Decide which vehicle telemetry field should be visible.
-
Add the value to
vehicle_user_data.user_datain the vehicle-side OCP response. -
In the portal, add a gauge or indicator widget.
-
Bind the widget to the telemetry field.
-
Test with the real vehicle or a simulator.
For example, the vehicle-side response can include:
{
"ack_time": 123456,
"ack_time_mac": 987654321,
"vehicle_user_data": {
"user_data": {
"speed_mps": 1.4,
"battery": 0.82,
"drive_mode": "manual"
}
}
}