Engine ECU state variables.
| 142 | |
| 143 | @dataclass |
| 144 | class 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 |