RadiusReference = 20925650.00;
gAccelReference = GM/(RadiusReference*RadiusReference);
gAccel = GM/(RadiusReference*RadiusReference);
+
+ bind();
Debug(0);
}
FGInertial::~FGInertial(void)
{
+ unbind();
Debug(1);
}
return true;
}
+//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+void FGInertial::bind(void)
+{
+ typedef double (FGInertial::*PMF)(int) const;
+ PropertyManager->Tie("forces/fbx-inertial-lbs", this,1,
+ (PMF)&FGInertial::GetForces);
+ PropertyManager->Tie("forces/fby-inertial-lbs", this,2,
+ (PMF)&FGInertial::GetForces);
+ PropertyManager->Tie("forces/fbz-inertial-lbs", this,3,
+ (PMF)&FGInertial::GetForces);
+}
+
+//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+void FGInertial::unbind(void)
+{
+ PropertyManager->Untie("forces/fbx-inertial-lbs");
+ PropertyManager->Untie("forces/fby-inertial-lbs");
+ PropertyManager->Untie("forces/fbz-inertial-lbs");
+}
+
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// The bitmasked value choices are as follows:
// unset: In this case (the default) JSBSim would only print
}
if (debug_lvl & 16) { // Sanity checking
}
+ if (debug_lvl & 64) {
+ if (from == 0) { // Constructor
+ cout << IdSrc << endl;
+ cout << IdHdr << endl;
+ }
+ }
}