Skip to content

Commit fb94fb5

Browse files
committed
Added a scale of 150
1 parent f5eef67 commit fb94fb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/RunActivity/Viewer3D/RollingStock/SubSystems/ETCS/SpeedDistanceMonitoring.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class CircularSpeedGauge : DMIArea
5353
readonly Point ReleaseSpeedPosition = new Point(26 - 6, 274 - 8);
5454
readonly int[] UnitCenterPosition = new int[] { 140, 204 };
5555
// 240 and 260 are non-standard scales by ETA, but national railways often use one of these instead of 250
56-
readonly int[] StandardScalesKMpH = new int[] { 140, 180, 240, 250, 260, 280, 400 };
56+
readonly int[] StandardScalesKMpH = new int[] { 140, 150, 180, 240, 250, 260, 280, 400 };
5757
readonly int[] StandardScalesMpH = new int[] { 87, 111, 155, 248 };
5858

5959
const string UnitMetricString = "km/h";
@@ -206,7 +206,7 @@ public void SetRange(int maxSpeed)
206206
float x = 0, y = 0;
207207
GetXY(RadiusOutside, angle, ref x, ref y);
208208

209-
if (speed % 10 == 0 || !UnitMetric && MaxSpeed < 130)
209+
if (speed % 10 == 0 || !UnitMetric && MaxSpeed < 130 || speed % 5 == 0 && MaxSpeed == 150)
210210
{
211211
if (longLine == 0)
212212
{
@@ -243,7 +243,7 @@ public void SetRange(int maxSpeed)
243243
{
244244
longLineEach = 4;
245245
}
246-
if (MaxSpeed > 300 && UnitMetric)
246+
if ((MaxSpeed > 300 || MaxSpeed == 150) && UnitMetric)
247247
{
248248
longLineEach = 5;
249249
}

0 commit comments

Comments
 (0)