18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 06:55:02 +01:00

Merge pull request #292 from MaSzyna-EU07/fix/en57-ep2-brake-charging

EN57 brakes: charging when hauled with the brake hose alone, Knorr EP brake only with control power
This commit is contained in:
2026-11-09 12:48:13 +00:00
committed by GitHub
8 changed files with 231 additions and 22 deletions

View File

@@ -3206,6 +3206,14 @@ bool TController::IncBrake()
mvOccupied->SwitchEPBrake( 1 ); // to nie chce działać
OK = true;
}
else if( ( mvOccupied->Handle->GetPos( bh_EPR ) - mvOccupied->Handle->GetPos( bh_EPN ) < 0.1 )
&& ( mvOccupied->EpForce <= 0.0 )
&& ( mvOccupied->EPBrakeControlPowered() ) ) {
// the handle already in the EP brake position, but the EP brake dropped out with the control's
// supply (e.g. the EP fuse off in the running brake test): switch it on again
mvOccupied->SwitchEPBrake( 1 );
OK = ( mvOccupied->EpForce > 0.0 );
}
else
OK = false;
break;