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
floatAdhesionMultiplier=Simulator.Settings.AdhesionFactor/100.0f;// User set adjustment factor - convert to a factor where 100% = no change to adhesion
963
+
BrakeShoeCoefficientFrictionAdjFactor=1.0f;
964
+
BrakeShoeRetardCoefficientFrictionAdjFactor=1.0f;
965
+
BrakeShoeCoefficientFriction=1.0f;
962
966
963
967
// This section calculates an adjustment factor for the brake force dependent upon the "base" (zero speed) friction value.
964
968
//For a user defined case the base value is the zero speed value from the curve entered by the user.
965
969
// For a "default" case where no user data has been added to the WAG file, the base friction value has been assumed to be 0.2, thus maximum value of 20% applied.
966
970
967
-
if(UserFriction!=0)// User defined friction has been applied in WAG file - Assume MaxBrakeForce is correctly set in the WAG, so no adjustment required
971
+
if(UserFriction!=0&&MaxBrakeShoeForceN!=0)// Assume user has set up brakeshoe force and brakeshoe CoF
BrakeShoeCoefficientFriction=UserFriction*AdhesionMultiplier;// For display purposes on HUD
976
+
}
977
+
elseif(UserFriction!=0)// User defined friction has been applied in WAG file - Assume MaxBrakeForce is correctly set in the WAG, so no adjustment required
968
978
{
969
979
BrakeShoeCoefficientFrictionAdjFactor=UserFriction/ZeroUserFriction*AdhesionMultiplier;// Factor calculated by normalising zero speed value on friction curve applied in WAG file
0 commit comments