return true;
}
-// Initialize view parameters
-void fgInitView() {
- // force update of model so that viewer can get some data...
- globals->get_aircraft_model()->update(0);
- // run update for current view so that data is current...
- globals->get_viewmgr()->update(0);
-}
-
// This is the top level init routine which calls all the other
// initialization routines. If you are adding a subsystem to flight
// gear, its initialization call should located in this routine.
globals->add_subsystem( "xml-autopilot", FGXMLAutopilotGroup::createInstance(), SGSubsystemMgr::FDM );
globals->add_subsystem( "route-manager", new FGRouteMgr );
-
- ////////////////////////////////////////////////////////////////////
- // Initialize the view manager subsystem.
- ////////////////////////////////////////////////////////////////////
-
- fgInitView();
////////////////////////////////////////////////////////////////////
// Initialize the Input-Output subsystem
// reload offsets from config defaults
globals->get_viewmgr()->reinit();
- fgInitView();
-
globals->get_controls()->reset_all();
globals->get_subsystem("time")->reinit();
#endif
globals->get_subsystem_mgr()->update(sim_dt);
- globals->get_aircraft_model()->update(sim_dt);
// run Nasal's settimer() loops right before the view manager
globals->get_event_mgr()->update(sim_dt);
////////////////////////////////////////////////////////////////////
FGAircraftModel* acm = new FGAircraftModel;
globals->set_aircraft_model(acm);
- //globals->add_subsystem("aircraft-model", acm);
- acm->init();
- acm->bind();
+ globals->add_subsystem("aircraft-model", acm, SGSubsystemMgr::DISPLAY);
////////////////////////////////////////////////////////////////////
// Initialize the view manager subsystem.