diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 7c4a387e6..936c51537 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -501,27 +501,6 @@ static naRef f_carttogeod(naContext c, naRef me, int argc, naRef* args) return vec; } -// Convert a cartesian point to a geodetic lat/lon/altitude. -static naRef f_radioTransmission(naContext c, naRef me, int argc, naRef* args) -{ - double lat, lon, elev, heading, pitch; - if(argc != 5) naRuntimeError(c, "radioTransmission() expects 5 arguments"); - for(int i=0; ireceiveBeacon(geod, heading, pitch); - delete radio; - return naNum(signal); -} - // Convert a geodetic lat/lon/altitude to a cartesian point. static naRef f_geodtocart(naContext c, naRef me, int argc, naRef* args) { @@ -577,6 +556,27 @@ static naRef f_geodinfo(naContext c, naRef me, int argc, naRef* args) #undef HASHSET } +// Expose a radio transmission interface to Nasal. +static naRef f_radioTransmission(naContext c, naRef me, int argc, naRef* args) +{ + double lat, lon, elev, heading, pitch; + if(argc != 5) naRuntimeError(c, "radioTransmission() expects 5 arguments"); + for(int i=0; ireceiveBeacon(geod, heading, pitch); + delete radio; + return naNum(signal); +} + class AirportInfoFilter : public FGAirport::AirportFilter {