From c648bc18f756e1d4b9b4a33b9a62ebdee89654ec Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 13 Feb 2004 12:54:38 +0000 Subject: [PATCH] Make sure the friction forces are positive, otherwise they will push the aircraft rather than holding it into place. The ground reaction code still needs some attention. --- src/FDM/JSBSim/FGLGear.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FDM/JSBSim/FGLGear.cpp b/src/FDM/JSBSim/FGLGear.cpp index fb3748211..3de603f40 100644 --- a/src/FDM/JSBSim/FGLGear.cpp +++ b/src/FDM/JSBSim/FGLGear.cpp @@ -403,6 +403,11 @@ FGColumnVector3& FGLGear::Force(void) FCoeff = dynamicFCoeff*fabs(WheelSlip)/WheelSlip; } + // A negative force coefficient will result in a force pulling the wheel(s) + // back instead of trying to stop them from moving. + if (FCoeff < 0.0) + FCoeff = 0.0; + // Compute the vertical force on the wheel using square-law damping (per comment // in paper AIAA-2000-4303 - see header prologue comments). We might consider // allowing for both square and linear damping force calculation. Also need to