16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 00:59:19 +02:00

Fix for wheel flat calculation when going backwards

This commit is contained in:
Królik Uszasty
2019-09-15 21:48:03 +02:00
committed by tmj-fstate
parent 2f5b6dee70
commit 7ddc198171

View File

@@ -4504,7 +4504,7 @@ void TMoverParameters::ComputeTotalForce(double dt) {
Fb *= factor;
FTrain *= factor;
}
if (nrot < 0.1)
if (std::abs(nrot < 0.1))
{
WheelFlat = sqrt(square(WheelFlat) + abs(Fwheels) / NAxles*Vel*0.000002);
}