#include <ATCDCL/ATCmgr.hxx>
#include <ATCDCL/commlist.hxx>
#include <ATC/atis_mgr.hxx>
+#include <ATC/atc_mgr.hxx>
#include <Autopilot/route_mgr.hxx>
#include <Autopilot/autopilotgroup.hxx>
////////////////////////////////////////////////////////////////////
// Initialise the ATC Manager
+ // Note that this is old stuff, but might be necessesary for the
+ // current ATIS implementation. Therefore, leave it in here
+ // until the ATIS system is ported over to make use of the ATIS
+ // sub system infrastructure.
////////////////////////////////////////////////////////////////////
SG_LOG(SG_GENERAL, SG_INFO, " ATC Manager");
globals->get_ATC_mgr()->init();
////////////////////////////////////////////////////////////////////
- // Initialise the ATIS Manager
+ // Initialize the ATC subsystem
+ ////////////////////////////////////////////////////////////////////
+ globals->add_subsystem("ATC", new FGATCManager, SGSubsystemMgr::POST_FDM);
+ ////////////////////////////////////////////////////////////////////
+ // Initialise the ATIS Subsystem
////////////////////////////////////////////////////////////////////
globals->add_subsystem("atis", new FGAtisManager, SGSubsystemMgr::POST_FDM);
return true;
}
-
+// Reset: this is what the 'reset' command (and hence, GUI) is attached to
void fgReInitSubsystems()
{
static const SGPropertyNode *master_freeze
// Initialize the FDM
globals->get_subsystem("flight")->reinit();
+ // reset replay buffers
+ globals->get_subsystem("replay")->reinit();
+
// reload offsets from config defaults
globals->get_viewmgr()->reinit();
globals->get_subsystem("time")->reinit();
- globals->get_subsystem("tile-manager")->reinit();
-
+
+ // need to bind FDMshell again, since we manually unbound it above...
+ globals->get_subsystem("flight")->bind();
+
// setup state to end re-init
fgSetBool("/sim/signals/reinit", false);
if ( !freeze ) {
}
-void doSimulatorReset(void) // from gui_local.cxx -- TODO merge with fgReInitSubsystems()
-{
-
-
- fgReInitSubsystems();
-}
-
///////////////////////////////////////////////////////////////////////////////
// helper object to implement the --show-aircraft command.
// resides here so we can share the fgFindAircraftInDir template above,