mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 22:39:18 +02:00
Speed Control Unit does not override emergency braking
This commit is contained in:
committed by
tmj-fstate
parent
d1d5841d60
commit
2acace52bf
@@ -3987,7 +3987,7 @@ void TMoverParameters::UpdatePipePressure(double dt)
|
||||
|| ( ( BrakeHandle != TBrakeHandle::MHZ_EN57 )
|
||||
&& ( BrakeHandle != TBrakeHandle::MHZ_K8P ) ) ) {
|
||||
double pos = BrakeCtrlPosR;
|
||||
if (SpeedCtrlUnit.IsActive && SpeedCtrlUnit.BrakeIntervention && !SpeedCtrlUnit.Standby) {
|
||||
if (SpeedCtrlUnit.IsActive && SpeedCtrlUnit.BrakeIntervention && !SpeedCtrlUnit.Standby && (BrakeCtrlPos != Handle->GetPos(bh_EB))) {
|
||||
pos = Handle->GetPos(bh_NP);
|
||||
if (SpeedCtrlUnit.BrakeInterventionBraking)
|
||||
pos = Handle->GetPos(bh_FB);
|
||||
|
||||
Reference in New Issue
Block a user