OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
apps.common.instruments.instrument_panel.InstrumentPanel Class Reference

Arrange and update a named collection of telemetry gauges. More...

Inheritance diagram for apps.common.instruments.instrument_panel.InstrumentPanel:
ui.ui_widget.UiWidget

Public Member Functions

None set_value (self, str name, float|None value)
 Update one gauge.
None set_values (self, Mapping[str, float|None] values)
 Update each configured gauge present in values.

Detailed Description

Arrange and update a named collection of telemetry gauges.

Member Function Documentation

◆ set_value()

None apps.common.instruments.instrument_panel.InstrumentPanel.set_value ( self,
str name,
float | None value )

Update one gauge.

Parameters
nameGauge key supplied at construction.
valueNew reading, or None when unavailable.
Exceptions
KeyErrorif ``name`` is not configured.

The documentation for this class was generated from the following file:
  • apps/common/instruments/instrument_panel.py