break;
}
}
-
+
fdmex = new FGFDMExec( (FGPropertyManager*)globals->get_props() );
// Register ground callback.
fgGetDouble("/fdm/jsbsim/systems/hook/tailhook-offset-x-in", 196),
fgGetDouble("/fdm/jsbsim/systems/hook/tailhook-offset-y-in", 0),
fgGetDouble("/fdm/jsbsim/systems/hook/tailhook-offset-z-in", -16));
+ last_hook_tip[0] = 0; last_hook_tip[1] = 0; last_hook_tip[2] = 0;
+ last_hook_root[0] = 0; last_hook_root[1] = 0; last_hook_root[2] = 0;
crashed = false;
}
FGJSBsim::~FGJSBsim(void)
{
delete fdmex;
-
- SGPropertyNode_ptr jsbsimRoot = fgGetNode("/fdm/jsbsim");
- if (jsbsimRoot) {
- SGPropertyNode* fdm = jsbsimRoot->getParent();
- fdm->removeChild("jsbsim", 0, false);
- }
- // properties are deleted when the sharedPtr above goes away
}
/******************************************************************************/
/******************************************************************************/
+void FGJSBsim::unbind()
+{
+ fdmex->Unbind();
+ FGInterface::unbind();
+}
+
+/******************************************************************************/
+
// Run an iteration of the EOM (equations of motion)
void FGJSBsim::update( double dt )