Skip to content

Commit c8ac68d

Browse files
committed
Minor cleanup.
1 parent ef2b07b commit c8ac68d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Source/RunActivity/Viewer3D/Popups/TrainForcesWindow.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@
1818
// This file is the responsibility of the 3D & Environment Team.
1919

2020
#region Design Notes
21-
// This is a prototype to evaluate a train forces popup display. The
22-
// intent is to provide real-time train-handling feeback of the forces
21+
// The intent is to provide real-time train-handling feeback of the forces
2322
// within the train, particularly for long, heavy freight trains. The
2423
// Forces HUD, display or browser, is hard to read for long trains.
2524
// An alternative, better in the long-term, might be an external window
2625
// that provides both in-train and over time feedback, as seen on
27-
// professional train simulators. See the discussion in the Elvas tower
28-
// forum, at:
29-
// https://www.elvastower.com/forums/index.php?/topic/38056-proposal-for-train-forces-popup-display/
26+
// professional train simulators.
3027
//
3128
// Coupler Force (longitudinal):
3229
// Shows the length-wise pull or push force at each coupling, as a colored bar graph. Up
@@ -103,7 +100,6 @@ public class TrainForcesWindow : Window
103100
private float DerailForceScaleN;
104101

105102
private static readonly float HighestRealisticBrakeForceN = 2.0e5f; // 45k lbf, used for graph scale only
106-
private float LimitForBrakeForceN = HighestRealisticBrakeForceN;
107103
private float BrakeForceScaleN;
108104

109105
private Image[] CouplerForceBarGraph;
@@ -342,7 +338,6 @@ private void SetConsistProperties(Train theTrain)
342338
LimitForDerailForceN = lowestDerailForceN;
343339
DerailForceScaleN = lowestDerailForceN * 1.1f;
344340

345-
LimitForBrakeForceN = lowestMaxBrakeForceN;
346341
BrakeForceScaleN = lowestMaxBrakeForceN * 1.5f;
347342
}
348343

@@ -423,7 +418,7 @@ private void UpdateBrakeForceImage(TrainCar car, int carPosition)
423418

424419
if (absForceN > 1000f && BrakeForceScaleN > 1000f) // exclude improbabl values
425420
{
426-
// log scale, to be sensitve at small application: 1k lbf, 7%, 146%, 22%, 30%, 39%, 51%, 68%, 100%
421+
// log scale, to be sensitve at small application: 1k lbf, 7%, 14%, 22%, 30%, 39%, 51%, 68%, 100%
427422
var relForce = absForceN / BrakeForceScaleN;
428423
var logForce = (1 / (1 + Math.Pow(10, -1.5f * relForce)) - 0.5f) * 17.05f + 1f;
429424
idx = (int)Math.Floor(logForce);

0 commit comments

Comments
 (0)