mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
fix for emptying brake reservoirs
This commit is contained in:
@@ -413,6 +413,7 @@ void TBrake::ForceEmptiness()
|
||||
{
|
||||
ValveRes->CreatePress(0);
|
||||
BrakeRes->CreatePress(0);
|
||||
|
||||
ValveRes->Act();
|
||||
BrakeRes->Act();
|
||||
}
|
||||
@@ -757,6 +758,17 @@ double TESt::GetCRP()
|
||||
return CntrlRes->P();
|
||||
}
|
||||
|
||||
void TESt::ForceEmptiness() {
|
||||
|
||||
ValveRes->CreatePress( 0 );
|
||||
BrakeRes->CreatePress( 0 );
|
||||
CntrlRes->CreatePress( 0 );
|
||||
|
||||
ValveRes->Act();
|
||||
BrakeRes->Act();
|
||||
CntrlRes->Act();
|
||||
}
|
||||
|
||||
//---EP2---
|
||||
|
||||
void TEStEP2::Init( double const PP, double const HPP, double const LPP, double const BP, int const BDF )
|
||||
@@ -1721,6 +1733,17 @@ double TCV1::GetCRP()
|
||||
return CntrlRes->P();
|
||||
}
|
||||
|
||||
void TCV1::ForceEmptiness() {
|
||||
|
||||
ValveRes->CreatePress( 0 );
|
||||
BrakeRes->CreatePress( 0 );
|
||||
CntrlRes->CreatePress( 0 );
|
||||
|
||||
ValveRes->Act();
|
||||
BrakeRes->Act();
|
||||
CntrlRes->Act();
|
||||
}
|
||||
|
||||
//---CV1-L-TR---
|
||||
|
||||
void TCV1L_TR::SetLBP( double const P )
|
||||
@@ -2090,6 +2113,21 @@ void TKE::SetLBP( double const P )
|
||||
LBP = P;
|
||||
}
|
||||
|
||||
void TKE::ForceEmptiness() {
|
||||
|
||||
ValveRes->CreatePress( 0 );
|
||||
BrakeRes->CreatePress( 0 );
|
||||
CntrlRes->CreatePress( 0 );
|
||||
ImplsRes->CreatePress( 0 );
|
||||
Brak2Res->CreatePress( 0 );
|
||||
|
||||
ValveRes->Act();
|
||||
BrakeRes->Act();
|
||||
CntrlRes->Act();
|
||||
ImplsRes->Act();
|
||||
Brak2Res->Act();
|
||||
}
|
||||
|
||||
//---KRANY---
|
||||
|
||||
double TDriverHandle::GetPF(double const i_bcp, double PP, double HP, double dt, double ep)
|
||||
|
||||
Reference in New Issue
Block a user