]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/atc_mgr.cxx
fix + define WITH_POINT_TO_POINT
[flightgear.git] / src / ATC / atc_mgr.cxx
index b367eeff04bf5b000a4b9dadcaa8ca04afc51548..41743e6e71a23632acd150a827fe15cfde00d0d3 100644 (file)
@@ -121,6 +121,7 @@ void FGATCManager::init() {
             string fltType = "ga";
             fp->setRunway(runway);
             fp->createTakeOff(&ai_ac, false, apt, 0, fltType);
+            ai_ac.setTakeOffStatus(2);
         } else {
             controller = apt->getDynamics()->getStartupController();
             int stationFreq = apt->getDynamics()->getGroundFrequency(1);
@@ -190,16 +191,16 @@ void FGATCManager::update ( double time ) {
     //    //cerr << "setting intentions " ;
         for (int i = 0; i < size; i++) {
     //        int val = fp->getRouteIndex(i);
-            cerr << fp->getWayPoint(i)->getName() << " ";
+            //cerr << fp->getWayPoint(i)->getName() << " ";
             //if ((val) && (val != pos)) {
                 //intentions.push_back(val);
                 //cerr << "[done ] " << endl;
             //}
         }
     }
-    cerr << "[done ] " << endl;
+    //cerr << "[done ] " << endl;
     if (fp) {
-        cerr << "Currently at leg : " << fp->getLeg() << endl;
+        //cerr << "Currently at leg : " << fp->getLeg() << endl;
     }
     double longitude = fgGetDouble("/position/longitude-deg");
     double latitude  = fgGetDouble("/position/latitude-deg");
@@ -215,10 +216,10 @@ void FGATCManager::update ( double time ) {
     controller = ai_ac.getATCController();
     currentATCDialog->update(time);
     if (controller) {
-       cerr << "name of previous waypoint : " << fp->getPreviousWaypoint()->getName() << endl;
+       //cerr << "name of previous waypoint : " << fp->getPreviousWaypoint()->getName() << endl;
 
         //cerr << "Running FGATCManager::update()" << endl;
-        cerr << "Currently under control of " << controller->getName() << endl;
+        //cerr << "Currently under control of " << controller->getName() << endl;
         controller->updateAircraftInformation(ai_ac.getID(),
                                               latitude,
                                               longitude,