mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 22:39:18 +02:00
build 180411. basic oil pump, diesel engine startup procedure
This commit is contained in:
11
Driver.cpp
11
Driver.cpp
@@ -2225,8 +2225,12 @@ bool TController::PrepareEngine()
|
||||
}
|
||||
if (AIControllFlag) {
|
||||
// część wykonawcza dla sterowania przez komputer
|
||||
mvOccupied->BatterySwitch(true);
|
||||
mvOccupied->FuelPumpSwitch( true );
|
||||
mvOccupied->BatterySwitch( true );
|
||||
if( ( mvOccupied->EngineType == DieselElectric )
|
||||
|| ( mvOccupied->EngineType == DieselEngine ) ) {
|
||||
mvOccupied->FuelPumpSwitch( true );
|
||||
mvOccupied->OilPumpSwitch( true );
|
||||
}
|
||||
if (mvControlling->EnginePowerSource.SourceType == CurrentCollector)
|
||||
{ // jeśli silnikowy jest pantografującym
|
||||
mvControlling->PantFront( true );
|
||||
@@ -2294,7 +2298,7 @@ bool TController::PrepareEngine()
|
||||
else if (false == mvControlling->Mains) {
|
||||
while (DecSpeed(true))
|
||||
; // zerowanie napędu
|
||||
|
||||
/*
|
||||
if( ( mvOccupied->EngineType == DieselEngine )
|
||||
|| ( mvOccupied->EngineType == DieselElectric ) ) {
|
||||
// start helper devices before spinning up the engine
|
||||
@@ -2302,6 +2306,7 @@ bool TController::PrepareEngine()
|
||||
mvOccupied->ConverterSwitch( true );
|
||||
mvOccupied->CompressorSwitch( true );
|
||||
}
|
||||
*/
|
||||
if( mvOccupied->TrainType == dt_SN61 ) {
|
||||
// specjalnie dla SN61 żeby nie zgasł
|
||||
if( mvControlling->RList[ mvControlling->MainCtrlPos ].Mn == 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user