mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 22:04:59 +01:00
fix: review of the separate engine start switches (eu07/maszyna#80)
- initialise the cooling power read from the .fiz to its default, no division by an indeterminate value - integer step counters in the engine start tests - main_sw opening the consist turns the two-state mainb_sw / mainc_sw off too, left on they'd start the engines again - the doc comment of MainCircuitOpensWithStarterOnly() back on it; the .fiz read is the controlled vehicle's
This commit is contained in:
@@ -11394,7 +11394,7 @@ void TMoverParameters::LoadFIZ_Engine(std::string const &Input)
|
||||
// water heater
|
||||
extract_value(WaterHeater.config.temp_min, "HeaterMinTemperature", Input, "");
|
||||
extract_value(WaterHeater.config.temp_max, "HeaterMaxTemperature", Input, "");
|
||||
float pf;
|
||||
float pf{ 1235.f };
|
||||
extract_value(pf, "NominalCoolingPower", Input, "1235");
|
||||
dizel_heat.powerfactor = 1235 / pf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user