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

Class EngineState

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

Engine ECU state variables.

Source from the content-addressed store, hash-verified

142
143@dataclass
144class EngineState:
145 """Engine ECU state variables."""
146
147 rpm: float = 800.0 # RPM (0-8000)
148 speed_kmh: float = 0.0 # Vehicle speed km/h (0-300)
149 coolant_temp: float = 20.0 # Coolant temperature °C (-40 to 150)
150 engine_load: float = 0.0 # Engine load % (0-100)
151 throttle_pos: float = 0.0 # Throttle position % (0-100)
152 intake_temp: float = 25.0 # Intake air temperature °C
153 fuel_pressure: float = 350.0 # Fuel pressure kPa
154
155
156@dataclass

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected