From 3180d5f4f2b32e54fe33d45bb94c85c4e980b501 Mon Sep 17 00:00:00 2001 From: jmt Date: Sat, 19 Dec 2009 18:12:00 +0000 Subject: [PATCH] Add runway ILS frequency to Nasal airportinfo() query, as discussed on the list. --- src/Scripting/NasalSys.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.39.5