From: jmt Date: Sat, 19 Dec 2009 18:12:00 +0000 (+0000) Subject: Add runway ILS frequency to Nasal airportinfo() query, as discussed on the list. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3180d5f4f2b32e54fe33d45bb94c85c4e980b501;p=flightgear.git Add runway ILS frequency to Nasal airportinfo() query, as discussed on the list. --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 502a406b2..c10c4d058 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -32,6 +32,7 @@ #include
#include
#include +#include #include "NasalSys.hxx" @@ -593,6 +594,11 @@ static naRef f_airportinfo(naContext c, naRef me, int argc, naRef* args) HASHSET("width", 5, naNum(rwy->widthM())); HASHSET("threshold", 9, naNum(rwy->displacedThresholdM())); HASHSET("stopway", 7, naNum(rwy->stopwayM())); + + if (rwy->ILS()) { + HASHSET("ils-frequency-mhz", 3, naNum(rwy->ILS()->get_freq() / 100.0)); + } + #undef HASHSET naHash_set(rwys, rwyid, rwydata); }