Skip to content

Commit 057dc64

Browse files
committed
Correct gauge readouts
1 parent 1d2c94f commit 057dc64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4280,7 +4280,7 @@ public virtual float GetDataOf(CabViewControl cvc)
42804280
if (FilteredMotiveForceN != 0)
42814281
data = this.FilteredMotiveForceN / MaxForceN * rangeFactor;
42824282
else
4283-
data = this.LocomotiveAxle.AxleForceN / MaxForceN * rangeFactor;
4283+
data = this.LocomotiveAxle.DriveForceN / MaxForceN * rangeFactor;
42844284
data = Math.Abs(data);
42854285
}
42864286
if (DynamicBrakePercent > 0 && MaxDynamicBrakeForceN > 0)
@@ -4326,7 +4326,7 @@ public virtual float GetDataOf(CabViewControl cvc)
43264326
if (FilteredMotiveForceN != 0)
43274327
data = this.FilteredMotiveForceN / MaxForceN * MaxCurrentA;
43284328
else
4329-
data = this.LocomotiveAxle.AxleForceN / MaxForceN * MaxCurrentA;
4329+
data = this.LocomotiveAxle.DriveForceN / MaxForceN * MaxCurrentA;
43304330
data = Math.Abs(data);
43314331
}
43324332
if (DynamicBrakePercent > 0 && MaxDynamicBrakeForceN > 0)
@@ -4347,7 +4347,7 @@ public virtual float GetDataOf(CabViewControl cvc)
43474347
if (FilteredMotiveForceN != 0)
43484348
data = this.FilteredMotiveForceN;
43494349
else
4350-
data = this.LocomotiveAxle.AxleForceN;
4350+
data = this.LocomotiveAxle.DriveForceN;
43514351
if (DynamicBrakePercent > 0)
43524352
{
43534353
data = DynamicBrakeForceN;
@@ -4395,7 +4395,7 @@ public virtual float GetDataOf(CabViewControl cvc)
43954395
if (FilteredMotiveForceN != 0)
43964396
data = Math.Abs(this.FilteredMotiveForceN);
43974397
else
4398-
data = Math.Abs(this.LocomotiveAxle.AxleForceN);
4398+
data = Math.Abs(this.LocomotiveAxle.DriveForceN);
43994399
if (DynamicBrakePercent > 0)
44004400
{
44014401
data = -Math.Abs(DynamicBrakeForceN);

0 commit comments

Comments
 (0)