]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/dynamics.cxx
Expose more things to Nasal for FMSs in particular - still work in progress.
[flightgear.git] / src / Airports / dynamics.cxx
index 854b3b4819f5b5c3ecd065fe09118500b272be8c..5a077968d1cad8f7bbc1d9ff456fd7b6e108e452 100644 (file)
@@ -102,6 +102,7 @@ bool FGAirportDynamics::getAvailableParking(double *lat, double *lon,
         //cerr << "Could not find parking spot at " << _ap->getId() << endl;
         *lat = _ap->getLatitude();
         *lon = _ap->getLongitude();
+        * gateId = -1;
         *heading = 0;
         found = true;
     } else {
@@ -496,7 +497,7 @@ const string & FGAirportDynamics::getId() const
 int FGAirportDynamics::getGroundFrequency(unsigned leg)
 {
     //return freqGround.size() ? freqGround[0] : 0; };
-    cerr << "Getting frequency for : " << leg << endl;
+    //cerr << "Getting frequency for : " << leg << endl;
     int groundFreq = 0;
     if (leg < 1) {
         SG_LOG(SG_ATC, SG_ALERT,
@@ -508,7 +509,7 @@ int FGAirportDynamics::getGroundFrequency(unsigned leg)
 
     if ((freqGround.size() < leg) && (leg > 0)) {
         groundFreq =
-            (freqGround.size() <
+            (freqGround.size() <=
              (leg - 1)) ? freqGround[freqGround.size() -
                                      1] : freqGround[leg - 1];
     }