Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc3aa16

Browse files
committed
Automatic merge of T1.5.1-689-g9d41208f0 and 19 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 855d0e2: 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 #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
21 parents b037530 + 9d41208 + c59c788 + d00beb9 + 67014b7 + f8dbeab + 43bf33e + f92de76 + 855d0e2 + d8a1c4d + edcc2dd + c81447b + 228f0f0 + d7daf62 + 43341cf + 39a9fa4 + 1f5ba4c + bf8876b + 794fddf + 5866028 + 64a29c8 commit fc3aa16

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public float InertiaKgm2
429429
/// <summary>
430430
/// switch between Polach and Pacha adhesion calculation
431431
/// </summary>
432-
bool UsePoalchAdhesion = false;
432+
bool UsePolachAdhesion = false;
433433

434434
/// <summary>
435435
/// Pre-calculation of slip characteristics at 0 slip speed
@@ -820,7 +820,7 @@ public void Save(BinaryWriter outf)
820820
double slipSpeedMpS = axleSpeedMpS - TrainSpeedMpS;
821821
double axleOutForceN = 0;
822822

823-
if (UsePoalchAdhesion)
823+
if (UsePolachAdhesion)
824824
{
825825
axleOutForceN = Math.Sign(slipSpeedMpS) * AxleWeightN * SlipCharacteristicsPolach(slipSpeedMpS);
826826
}
@@ -858,7 +858,7 @@ public void Save(BinaryWriter outf)
858858
/// Integrates the wheel rotation movement using a RK4 method,
859859
/// calculating the required number of substeps
860860
/// To maintain the accuracy of the integration method, the number of substeps needs to increase when slip speed approaches the slip threshold speed.
861-
/// The folloi=wing section attempts to calculate the optimal substep limit. This is a trade off between the accuracy of the slips calculations and the CPU load which impacts the screen FPS
861+
/// The following section attempts to calculate the optimal substep limit. This is a trade off between the accuracy of the slips calculations and the CPU load which impacts the screen FPS
862862
/// Outputs: wheel speed, wheel angular position and motive force
863863
/// </summary>
864864
void Integrate(float elapsedClockSeconds)
@@ -960,11 +960,11 @@ public virtual void Update(float timeSpan)
960960
// Switches between Polach (high performance) adhesion model and Pacha (low performance) adhesion model
961961
if(ScreenFrameRate > 59)
962962
{
963-
UsePoalchAdhesion = true;
963+
UsePolachAdhesion = true;
964964
}
965965
else if(ScreenFrameRate < 55)
966966
{
967-
UsePoalchAdhesion = false;
967+
UsePolachAdhesion = false;
968968
if (TrainSpeedMpS > 0 )
969969
{
970970
Trace.TraceInformation("Advanced adhesion model switched to low performance option due to low frame rate {0} at ElapsedClockSeconds of {1}", ScreenFrameRate, timeSpan);
@@ -979,7 +979,7 @@ public virtual void Update(float timeSpan)
979979

980980
forceToAccelerationFactor = WheelRadiusM * WheelRadiusM / totalInertiaKgm2;
981981

982-
if (UsePoalchAdhesion)
982+
if (UsePolachAdhesion)
983983
{
984984

985985
Polach.Update();

0 commit comments

Comments
 (0)