mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
feat: add EngineMaxTemperature support for diesel locomotive overheat detection
Add engine temperature monitoring to diesel locomotive heat management system: - Add engine field to heat_data struct (fluid_circuit_t type) - Add EngineMaxTemperature config extraction in .fiz files - Add engine overheat detection logic (is_hot check) - Include engine.is_hot in PT status check Implements issue #77: Oil, water and engine overheat lamps for diesel locomotives
This commit is contained in:
@@ -1045,7 +1045,7 @@ class TMoverParameters
|
||||
bool is_warm{false}; // fluid is too hot
|
||||
bool is_hot{false}; // fluid temperature crossed cooling threshold
|
||||
bool is_flowing{false}; // fluid is being pushed through the circuit
|
||||
} water, water_aux, oil;
|
||||
} water, water_aux, oil, engine;
|
||||
// output, state of affected devices
|
||||
bool PA{false}; // malfunction flag
|
||||
float rpmw{0.0}; // current main circuit fan revolutions
|
||||
|
||||
Reference in New Issue
Block a user