You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic merge of T1.5.1-687-gd279e384a and 20 pull requests
- Pull request #570 at c59c788: Experimental glTF 2.0 support with PBR lighting
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters
- Pull request #865 at 67014b7: Dispatcher window improvements
- Pull request #874 at f8dbeab: Dynamic brake controller refactoring
- Pull request #875 at 43bf33e: Bug fix for https://bugs.launchpad.net/or/+bug/2036346 Player train switching doesn't work with 3D cabs
- Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder
- Pull request #878 at af5b93b: Implement Polach Adhesion
- Pull request #882 at d8a1c4d: Blueprint/train car operations UI window
- Pull request #883 at edcc2dd: SwitchPanel disconnect/connect handling
- Pull request #885 at c81447b: feat: Add notifications to Menu
- Pull request #886 at 228f0f0: Scene viewer extension to TrackViewer
- Pull request #887 at 4665bda: docs: Document projects, assemblies, namespaces
- Pull request #888 at d7daf62: docs: Document player application model
- Pull request #889 at 43341cf: No speed update
- Pull request #890 at 39a9fa4: Allow depart early
- Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH
- Pull request #893 at bf8876b: Signal errors
- Pull request #894 at 794fddf: Correct Decrease Colour
- Pull request #896 at 5866028: First implementation of https://blueprints.launchpad.net/or/+spec/specific-sounds-for-ai-trains
- Pull request #897 at 64a29c8: feat: Improved system information collection
Copy file name to clipboardExpand all lines: Source/Orts.Simulation/Simulation/RollingStocks/MSTSDieselLocomotive.cs
+19-10Lines changed: 19 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,6 @@ public override void LoadFromWagFile(string wagFilePath)
301
301
{
302
302
Trace.TraceInformation("MaxRailOutputPower (BASIC Config): set at arbitary value = {0}",FormatStrings.FormatPower(LocomotiveMaxRailOutputPowerW,IsMetric,false,false));
303
303
}
304
-
305
304
}
306
305
307
306
@@ -313,7 +312,6 @@ public override void LoadFromWagFile(string wagFilePath)
313
312
Trace.TraceInformation("Maximum Diesel Engine Prime Mover Power set the same as MaxRailOutputPower {0} value",FormatStrings.FormatPower(MaximumDieselEnginePowerW,IsMetric,false,false));
314
313
315
314
}
316
-
317
315
}
318
316
319
317
// Check that maximum force value has been set
@@ -330,40 +328,42 @@ public override void LoadFromWagFile(string wagFilePath)
330
328
}
331
329
else
332
330
{
333
-
floatThrottleSetting=1.0f;// Must be at full throttle for these calculations
331
+
floatthrottleSetting=1.0f;// Must be at full throttle for these calculations
334
332
floatStartingSpeedMpS=0.1f;// Assumed starting speed for diesel - can't be zero otherwise error will occurr
Trace.TraceInformation("Diesel Force Settings (BASIC Config): Max Starting Force {0}, Calculated Max Continuous Force {1} @ speed of {2}",FormatStrings.FormatForce(MaxForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
354
351
Trace.TraceInformation("Diesel Power Settings (BASIC Config): Prime Mover {0}, Max Rail Output Power {1}",FormatStrings.FormatPower(MaximumDieselEnginePowerW,IsMetric,false,false),FormatStrings.FormatPower(LocomotiveMaxRailOutputPowerW,IsMetric,false,false));
355
352
356
353
if(MaxForceN<MaxContinuousForceN)
357
354
{
358
355
Trace.TraceInformation("!!!! Warning: Starting Tractive force {0} is less then Calculated Continuous force {1}, please check !!!!",FormatStrings.FormatForce(MaxForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
359
356
}
357
+
}
360
358
361
359
}
362
360
else// Advanced configuration -
363
361
{
364
362
floatStartingSpeedMpS=0.1f;// Assumed starting speed for diesel - can't be zero otherwise error will occurr
Trace.TraceInformation("Diesel Force Settings (ADVANCED Config): Max Starting Force {0}, Calculated Max Continuous Force {1}, @ speed of {2}",FormatStrings.FormatForce(StartingForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
368
368
Trace.TraceInformation("Diesel Power Settings (ADVANCED Config): Prime Mover {0}, Max Rail Output Power {1} @ {2} rpm",FormatStrings.FormatPower(DieselEngines.MaxPowerW,IsMetric,false,false),FormatStrings.FormatPower(DieselEngines.MaximumRailOutputPowerW,IsMetric,false,false),MaxRPM);
369
369
@@ -372,10 +372,11 @@ public override void LoadFromWagFile(string wagFilePath)
372
372
Trace.TraceInformation("!!!! Warning: Calculated Starting Tractive force {0} is less then Calculated Continuous force {1}, please check !!!!",FormatStrings.FormatForce(StartingForceN,IsMetric),FormatStrings.FormatForce(CalculatedMaxContinuousForceN,IsMetric),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
373
373
}
374
374
}
375
+
}
375
376
376
377
// Check that MaxPower value is realistic - Calculate power - metric - P = F x V
Trace.TraceInformation("!!!! Warning: MaxPower {0} is less then continuous force calculated power {1} @ speed of {2}, please check !!!!",FormatStrings.FormatPower(MaxPowerW,IsMetric,false,false),FormatStrings.FormatPower(CalculatedContinuousPowerW,IsMetric,false,false),FormatStrings.FormatSpeedDisplay(SpeedOfMaxContinuousForceMpS,IsMetric));
381
382
}
@@ -386,20 +387,28 @@ public override void LoadFromWagFile(string wagFilePath)
0 commit comments