Skip to content

Commit a44cdee

Browse files
committed
Automatic merge of T1.6-rc7-38-ge57a7a113 and 13 pull requests
- Pull request #1086 at e10390b: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at 2e06f85: Automatic speed control - Pull request #1104 at ee45324: Handle simple adhesion within the axle module - Pull request #1115 at 270f22f: Do not activate ETS switch if no suitable cars are attached - Pull request #1120 at ba3c47f: Automatically Calculate Friction Values if Missing - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1130 at 8ae6bb7: Fix F9 points to an incorrect car ID. - Pull request #1139 at 03c6f8f: Fix for bug https://bugs.launchpad.net/or/+bug/2117357. - Pull request #1143 at 71e57d2: Status in Work Orders popup set too fast - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1081 at 689494b: Brake cuts power unification - Pull request #1124 at fab5457: Built-in PBL2 brake controller - Pull request #1128 at 58de4c3: Particle Emitter Overhaul
15 parents d4ccd56 + e57a7a1 + e10390b + 2e06f85 + ee45324 + 270f22f + ba3c47f + 91d2d26 + 8ae6bb7 + 03c6f8f + 71e57d2 + 5845a1a + 689494b + fab5457 + 58de4c3 commit a44cdee

File tree

1 file changed

+3
-0
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions

1 file changed

+3
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions/Axle.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,7 @@ public void Save(BinaryWriter outf)
11001100
/// </summary>
11011101
public (double accelMpSS, double angSpeedRadpS, double driveForceN, double axleMotiveForceN, double axleBrakeForceN, double axleFrictionForceN) GetAxleMotionVariation(double axleSpeedMpS, double elapsedClockSeconds)
11021102
{
1103+
if (double.IsNaN(axleSpeedMpS)) axleSpeedMpS = 0;
11031104
double slipSpeedMpS = axleSpeedMpS - TrainSpeedMpS;
11041105
// Compute force transmitted to rail according to adhesion curves
11051106
double axleOutForceN;
@@ -1325,12 +1326,14 @@ public virtual void Update(float elapsedSeconds)
13251326
WheelAdhesion = (float)SlipCharacteristicsPolach(SlipSpeedMpS);
13261327
MaximumWheelAdhesion = (float)SlipCharacteristicsPolach(WheelSlipThresholdMpS);
13271328

1329+
#if DEBUG_ADHESION
13281330
if (count < 6 && count++ == 5)
13291331
{
13301332
TrainSpeedMpS = 10 / 3.6f;
13311333
Polach.Update();
13321334
axleStaticForceN = AxleWeightN * SlipCharacteristicsPolach(0);
13331335
}
1336+
#endif
13341337
}
13351338
else
13361339
{

0 commit comments

Comments
 (0)