mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 07:39:19 +02:00
Better calculation when slipping with disabled inverters
This commit is contained in:
@@ -4798,6 +4798,11 @@ void TMoverParameters::ComputeTotalForce(double dt) {
|
||||
Power > 0 ?
|
||||
TractionForce( dt ) :
|
||||
0 );
|
||||
double FT_factor = 1.0;
|
||||
if (EngineType == TEngineType::ElectricInductionMotor && InvertersRatio > 0.0) {
|
||||
FT_factor = 1.0 / InvertersRatio;
|
||||
FTrain *= FT_factor;
|
||||
}
|
||||
|
||||
Fb = BrakeForce(RunningTrack);
|
||||
// poslizg
|
||||
@@ -4852,6 +4857,7 @@ void TMoverParameters::ComputeTotalForce(double dt) {
|
||||
|
||||
FStand += Fb;
|
||||
// doliczenie składowej stycznej grawitacji
|
||||
FTrain /= FT_factor;
|
||||
FTrain += TotalMassxg * RunningShape.dHtrack;
|
||||
//!niejawne przypisanie zmiennej!
|
||||
FTotal = FTrain - Sign(V) * FStand;
|
||||
|
||||
Reference in New Issue
Block a user