- //string name;
- // "NOTE: this is currently fixed to "com" for commercial traffic
- // Should be changed to be used dynamically to allow "gen" and "mil"
- // as well
- //apt->getActiveRunway("com", 1, name);
- //if (!(globals->get_runways()->search(apt->getId(),
- // name,
- // &rwy)))
- //{//
- //cout << "Failed to find runway for " << apt->getId() << endl;
- // Hmm, how do we handle a potential error like this?
- // exit(1);
- // }
- //string test;
- //apt->getActiveRunway(string("com"), 1, test);
- //exit(1);
-
- //heading = rwy._heading;
- //double azimuth = heading + 180.0;
- //while ( azimuth >= 360.0 ) { azimuth -= 360.0; }
- //geo_direct_wgs_84 ( 0, rwy._lat, rwy._lon, azimuth,
- // rwy._length * SG_FEET_TO_METER * 0.5 - 5.0,
- // &lat2, &lon2, &az2 );
- apt->getDynamics()->getAvailableParking(&lat, &lon, &heading, &gateId, radius, fltType, acType, airline);
- heading += 180.0;
- if (heading > 360)
- heading -= 360;
- geo_direct_wgs_84 ( 0, lat, lon, heading,
- 100,
- &lat2, &lon2, &az2 );
+ apt->getDynamics()->getAvailableParking(&lat, &lon, &heading,
+ &gateId, radius, fltType,
+ acType, airline);
+