1
0
Fork 0

Add runway ILS frequency to Nasal airportinfo() query, as discussed on the list.

This commit is contained in:
jmt 2009-12-19 18:12:00 +00:00 committed by Tim Moore
parent 0637cba24a
commit 3180d5f4f2

View file

@ -32,6 +32,7 @@
#include <Main/fg_props.hxx>
#include <Main/util.hxx>
#include <Scenery/scenery.hxx>
#include <Navaids/navrecord.hxx>
#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);
}