X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2Fmodels%2FFGLGear.cpp;h=4a4c9946f381e4ebd5aadc63f9ee2a10fdcc3441;hb=a302cdc1cbb3c147e7c862b484cdd5d86f30a29c;hp=4106f5ab0c73b1ad6d60c88ad4a406b309a8337f;hpb=f2a817d1370cde5a94474344a65bacb2f7845352;p=flightgear.git diff --git a/src/FDM/JSBSim/models/FGLGear.cpp b/src/FDM/JSBSim/models/FGLGear.cpp index 4106f5ab0..4a4c9946f 100644 --- a/src/FDM/JSBSim/models/FGLGear.cpp +++ b/src/FDM/JSBSim/models/FGLGear.cpp @@ -62,7 +62,7 @@ DEFINITIONS GLOBAL DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ -static const char *IdSrc = "$Id: FGLGear.cpp,v 1.78 2010/10/07 03:45:40 jberndt Exp $"; +static const char *IdSrc = "$Id: FGLGear.cpp,v 1.80 2011/01/24 13:01:56 jberndt Exp $"; static const char *IdHdr = ID_LGEAR; // Body To Structural (body frame is rotated 180 deg about Y and lengths are given in @@ -374,13 +374,15 @@ FGColumnVector3& FGLGear::GetBodyForces(void) } } - ReportTakeoffOrLanding(); + if (!fdmex->GetTrimStatus()) { + ReportTakeoffOrLanding(); - // Require both WOW and LastWOW to be true before checking crash conditions - // to allow the WOW flag to be used in terminating a scripted run. - if (WOW && lastWOW) CrashDetect(); + // Require both WOW and LastWOW to be true before checking crash conditions + // to allow the WOW flag to be used in terminating a scripted run. + if (WOW && lastWOW) CrashDetect(); - lastWOW = WOW; + lastWOW = WOW; + } return FGForce::GetBodyForces(); } @@ -806,6 +808,10 @@ void FGLGear::bind(void) property_name = base_property_name + "/static_friction_coeff"; fdmex->GetPropertyManager()->Tie( property_name.c_str(), &staticFCoeff ); + property_name = base_property_name + "/rolling_friction_coeff"; + fdmex->GetPropertyManager()->Tie( property_name.c_str(), &rollingFCoeff ); + property_name = base_property_name + "/dynamic_friction_coeff"; + fdmex->GetPropertyManager()->Tie( property_name.c_str(), &dynamicFCoeff ); if (eSteerType == stCaster) { property_name = base_property_name + "/steering-angle-deg";