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

Faster reaction of inverters for EIM

This commit is contained in:
Królik Uszasty
2018-06-24 18:36:06 +02:00
committed by tmj-fstate
parent 984b7c579a
commit c6d2f1271d

View File

@@ -5064,7 +5064,7 @@ double TMoverParameters::TractionForce( double dt ) {
Hamulec->SetED(0); Hamulec->SetED(0);
// (Hamulec as TLSt).SetLBP(LocBrakePress); // (Hamulec as TLSt).SetLBP(LocBrakePress);
if ((PosRatio > dizel_fill)) if ((PosRatio > dizel_fill))
tmp = 1; tmp = 4;
else else
tmp = 4; // szybkie malenie, powolne wzrastanie tmp = 4; // szybkie malenie, powolne wzrastanie
} }
@@ -5073,7 +5073,7 @@ double TMoverParameters::TractionForce( double dt ) {
// TODO: gather these in single place so they can be resolved together // TODO: gather these in single place so they can be resolved together
if( ( SlippingWheels ) ) { if( ( SlippingWheels ) ) {
PosRatio = 0; PosRatio = 0;
tmp = 9; tmp = 10;
Sandbox( true, range::unit ); Sandbox( true, range::unit );
} // przeciwposlizg } // przeciwposlizg
else { else {
@@ -5081,7 +5081,7 @@ double TMoverParameters::TractionForce( double dt ) {
Sandbox( false, range::unit ); Sandbox( false, range::unit );
} }
dizel_fill += Max0R(Min0R(PosRatio - dizel_fill, 0.1), -0.1) * 2 * dizel_fill += Max0R(Min0R(PosRatio - dizel_fill, 0.02), -0.02) * 12 *
(tmp /*2{+4*byte(PosRatio<dizel_fill)*/) * (tmp /*2{+4*byte(PosRatio<dizel_fill)*/) *
dt; // wartość zadana/procent czegoś dt; // wartość zadana/procent czegoś