mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 10:29:19 +02:00
securitysystem workarounds
This commit is contained in:
@@ -192,6 +192,9 @@ bool TSecuritySystem::is_cabsignal_beeping() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool TSecuritySystem::is_braking() const {
|
bool TSecuritySystem::is_braking() const {
|
||||||
|
if (!enabled)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!power && (vigilance_enabled || cabsignal_enabled))
|
if (!power && (vigilance_enabled || cabsignal_enabled))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@@ -4297,7 +4300,7 @@ void TMoverParameters::UpdatePipePressure(double dt)
|
|||||||
|| ( true == AlarmChainFlag )
|
|| ( true == AlarmChainFlag )
|
||||||
|| (( true == EIMCtrlEmergency)
|
|| (( true == EIMCtrlEmergency)
|
||||||
&& (LocalBrakePosA >= 1.0))
|
&& (LocalBrakePosA >= 1.0))
|
||||||
|| SecuritySystem.is_braking()) && CabOccupied )
|
|| SecuritySystem.is_braking()))
|
||||||
/*
|
/*
|
||||||
// NOTE: disabled because 32 is 'load destroyed' flag, what does this have to do with emergency brake?
|
// NOTE: disabled because 32 is 'load destroyed' flag, what does this have to do with emergency brake?
|
||||||
// (if it's supposed to be broken coupler, such event sets alarmchainflag instead when appropriate)
|
// (if it's supposed to be broken coupler, such event sets alarmchainflag instead when appropriate)
|
||||||
|
|||||||
Reference in New Issue
Block a user