29
edits
Line 1,490: | Line 1,490: | ||
:* A hash with ''lat'' and ''lon'' members | :* A hash with ''lat'' and ''lon'' members | ||
:* A geo.Coord object | :* A geo.Coord object | ||
:* Two numbers separated by a comma, as if the function is taking three arguments. Example: <code> | :* Two numbers separated by a comma, as if the function is taking three arguments. Example: <code>findNavaidByFrequencyMHz(lat, lon, freq, type);</code>. | ||
|param2 = freq | |param2 = freq | ||
|param2text = Frequency, in megahertz, of the navaid to search for. | |param2text = Frequency, in megahertz, of the navaid to search for. | ||
|param3 = type | |param3 = type | ||
|param3text = This will narrow the search to navaids of a certain type. Defaults to "all." For the full list of accepted type arguments, see {{flightgear file|src/Navaids/positioned.cxx|l=127}}. | |param3text = This will narrow the search to navaids of a certain type. Defaults to "all." For the full list of accepted type arguments, see {{flightgear file|src/Navaids/positioned.cxx|l=127}}. | ||
|example1 = var navaid = findNavaidByFrequencyMHz( | |example1 = var navaid = findNavaidByFrequencyMHz(109.55); | ||
print("ID: ", navaid.id); # prints info about the navaid | print("ID: ", navaid.id); # prints info about the navaid | ||
print("Name: ", navaid.name); | print("Name: ", navaid.name); | ||
Line 1,502: | Line 1,502: | ||
print("Elevation (AMSL): ", navaid.elevation, " m"); | print("Elevation (AMSL): ", navaid.elevation, " m"); | ||
print("Type: ", navaid.type); | print("Type: ", navaid.type); | ||
print("Frequency: ", sprintf("%.3f", navaid.frequency / | print("Frequency: ", sprintf("%.3f", navaid.frequency / 100), " Mhz"); | ||
print("Range: ", navaid.range_nm, " nm"); | print("Range: ", navaid.range_nm, " nm"); | ||
if(navaid.course) print("Course: ", navaid.course); | if(navaid.course) print("Course: ", navaid.course); |
edits