Skip to content

Commit 855d0e2

Browse files
committed
Correct spelling errors
1 parent af5b93b commit 855d0e2

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)