#include <algorithm>
#include "trafficcontrol.hxx"
+#include "atc_mgr.hxx"
#include <AIModel/AIAircraft.hxx>
#include <AIModel/AIFlightPlan.hxx>
#include <AIModel/performancedata.hxx>
FGATCController::FGATCController()
{
+ cerr << "running FGATController constructor" << endl;
dt_count = 0;
available = true;
lastTransmission = 0;
+ FGATCManager *mgr = (FGATCManager*) globals->get_subsystem("ATC");
+ mgr->addController(this);
+}
+
+FGATCController::~FGATCController()
+{
+ cerr << "running FGATController destructor" << endl;
}
string FGATCController::getGateName(FGAIAircraft * ref)
}
}
-void FGTowerController::update(int id, double lat, double lon,
- double heading, double speed, double alt,
- double dt)
+void FGTowerController::updateAircraftInformation(int id, double lat, double lon,
+ double heading, double speed, double alt,
+ double dt)
{
TrafficVectorIterator i = activeTraffic.begin();
// Search whether the current id has an entry
}
}
-void FGStartupController::update(int id, double lat, double lon,
- double heading, double speed, double alt,
- double dt)
+void FGStartupController::updateAircraftInformation(int id, double lat, double lon,
+ double heading, double speed, double alt,
+ double dt)
{
TrafficVectorIterator i = activeTraffic.begin();
// Search search if the current id has an entry
}
}
-void FGApproachController::update(int id, double lat, double lon,
- double heading, double speed, double alt,
- double dt)
+void FGApproachController::updateAircraftInformation(int id, double lat, double lon,
+ double heading, double speed, double alt,
+ double dt)
{
TrafficVectorIterator i = activeTraffic.begin();
// Search search if the current id has an entry