pub unsafe extern "C" fn XPLMGetNavAidInfo(
inRef: XPLMNavRef,
outType: *mut XPLMNavType,
outLatitude: *mut f32,
outLongitude: *mut f32,
outHeight: *mut f32,
outFrequency: *mut c_int,
outHeading: *mut f32,
outID: *mut c_char,
outName: *mut c_char,
outReg: *mut c_char,
)Expand description
XPLMGetNavAidInfo
This routine returns information about a navaid. Any non-null field is filled out with information if it is available.
Frequencies are in the nav.dat convention as described in the X-Plane nav database FAQ: NDB frequencies are exact, all others are multiplied by 100.
The buffer for IDs should be at least 6 chars and the buffer for names should be at least 41 chars, but since these values are likely to go up, I recommend passing at least 32 chars for IDs and 256 chars for names when possible.
The outReg parameter tells if the navaid is within the local “region” of loaded DSFs. (This information may not be particularly useful to plugins.) The parameter is a single byte value 1 for true or 0 for false, not a C string.