@@ -924,7 +924,7 @@ void Integrate(float elapsedClockSeconds)
924924 NumOfSubstepsPS -= 5 ;
925925 waitBeforeSpeedingUp = 5 ;
926926 }
927- else if ( Math . Abs ( integratorError ) < 0.005 )
927+ else if ( Math . Abs ( integratorError ) < 0.000277 )
928928 {
929929 NumOfSubstepsPS -= 2 ;
930930 waitBeforeSpeedingUp = 5 ;
@@ -945,6 +945,7 @@ void Integrate(float elapsedClockSeconds)
945945 for ( int i = 0 ; i < NumOfSubstepsPS ; i ++ )
946946 {
947947 var k1 = GetAxleMotionVariation ( AxleSpeedMpS , dt ) ;
948+ /*
948949 if (i == 0)
949950 {
950951 if (k1.Item1 * dt > Math.Max((Math.Abs(SlipSpeedMpS) - 1) * 10, 1) / 100)
@@ -955,6 +956,7 @@ void Integrate(float elapsedClockSeconds)
955956 hdt = dt / 2;
956957 }
957958 }
959+ */
958960 var k2 = GetAxleMotionVariation ( AxleSpeedMpS + k1 . Item1 * hdt , hdt ) ;
959961 var k3 = GetAxleMotionVariation ( AxleSpeedMpS + k2 . Item1 * hdt , hdt ) ;
960962 var k4 = GetAxleMotionVariation ( AxleSpeedMpS + k3 . Item1 * dt , dt ) ;
@@ -1033,17 +1035,17 @@ public virtual void Update(float timeSpan)
10331035 if ( Math . Abs ( SlipSpeedMpS ) > WheelSlipThresholdMpS )
10341036 {
10351037 // Wait some time before indicating wheelslip to avoid false triggers
1036- if ( WheelSlipTimeS > 0.75f )
1038+ if ( WheelSlipTimeS > 1 )
10371039 {
10381040 IsWheelSlip = IsWheelSlipWarning = true ;
1039- Trace . TraceInformation ( "Wheel Slip Triggered" ) ;
1041+ // Trace.TraceInformation("Wheel Slip Triggered");
10401042 }
10411043 WheelSlipTimeS += timeSpan ;
10421044 }
10431045 else if ( Math . Abs ( SlipSpeedPercent ) > SlipWarningTresholdPercent )
10441046 {
10451047 // Wait some time before indicating wheelslip to avoid false triggers
1046- if ( WheelSlipWarningTimeS > 0.75f ) IsWheelSlipWarning = true ;
1048+ if ( WheelSlipWarningTimeS > 1 ) IsWheelSlipWarning = true ;
10471049 IsWheelSlip = false ;
10481050 WheelSlipWarningTimeS += timeSpan ;
10491051 }
0 commit comments