MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / ClusterState

Class ClusterState

examples/CAN Bus Example/ecu_simulator.py:210–216  ·  view source on GitHub ↗

Instrument cluster state.

Source from the content-addressed store, hash-verified

208
209@dataclass
210class ClusterState:
211 """Instrument cluster state."""
212
213 odometer_km: float = 50000.0 # Total distance km
214 trip_km: float = 0.0 # Trip distance km
215 fuel_level: float = 75.0 # Fuel level %
216 fuel_consumption: float = 8.5 # L/100km
217
218
219# =============================================================================

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected