16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 18:39:18 +02:00

more complete parsing of .fiz data files

This commit is contained in:
tmj-fstate
2017-01-22 00:08:53 +01:00
parent 8f2f3b9889
commit 538d130617
7 changed files with 1045 additions and 682 deletions

View File

@@ -193,7 +193,8 @@ double TBrakeCyl::P()
static double const cD = 1;
static double const pD = VD - cD;
double VtoC = Vol / Cap; // stosunek cisnienia do objetosci
double VtoC = ( Cap > 0.0 ) ? Vol / Cap : 0.0; // stosunek cisnienia do objetosci.
// Added div/0 trap for vehicles with incomplete definitions (cars etc)
// P:=VtoC;
if (VtoC < VS)
return VtoC * pS / VS; // objetosc szkodliwa