Fix for Handle=H14K1 with BrakeValve=K

This commit is contained in:
Królik Uszasty
2019-03-21 23:17:41 +01:00
committed by tmj-fstate
parent 75cc0b2a24
commit df068534d4
2 changed files with 2 additions and 2 deletions

View File

@@ -2721,7 +2721,7 @@ bool TController::IncBrake()
}
}
else {
if( /*GBH mvOccupied->BrakeCtrlPos*/ BrakeCtrlPosition + 1 == mvOccupied->BrakeCtrlPosNo ) {
if( /*GBH mvOccupied->BrakeCtrlPos*/ BrakeCtrlPosition + 1 == gbh_MAX ) {
if (AccDesired < -1.5) // hamowanie nagle
OK = /*mvOccupied->*/BrakeLevelAdd(1.0); //GBH
else

View File

@@ -346,7 +346,7 @@ double TBrake::GetVRP()
// cisnienie zbiornika sterujacego
double TBrake::GetCRP()
{
return 0;
return GetBRP();
}
// przeplyw z przewodu glowneg