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
}
}
-void FGInertial::bind(void){
- PropertyManager->Tie("forces/fbx-inertial-lbs", this,1,
- &FGInertial::GetForces);
- PropertyManager->Tie("forces/fby-inertial-lbs", this,2,
- &FGInertial::GetForces);
- PropertyManager->Tie("forces/fbz-inertial-lbs", this,3,
- &FGInertial::GetForces);
-}
-
-void FGInertial::unbind(void){
- PropertyManager->Untie("forces/fbx-inertial-lbs");
- PropertyManager->Untie("forces/fby-inertial-lbs");
- PropertyManager->Untie("forces/fbz-inertial-lbs");
-}