I have been working a little with the WASM facility API. I would like to
subscribe to all of the VHF navaids in the vicinity of the aircraft, and get
some detailed information about them. If I subscribe with
SimConnect_SubscribeToFacilities_EX1
, then I would like to request more
detailed information with SimConnect_RequestFacilityData_EX1
(after having
previously set up a VOR definition with all of the data I desire). The problem
is that the SIMCONNECT_DATA_FACILITY_VOR
provided in the list from
SimConnect_SubscribeToFacilities_EX1
does not give the region of the navaid,
which I then seemingly require for SimConnect_RequestFacilityData_EX1
. The
documentation suggests that if region is left empty all the of the matching
facilities will be returned, but in-fact only a subset of the facilities are
returned without a region code. The question is how to call
RequestFacilityData using the information given by SubscribeToUtilities? It
would be nice if both SimConnect_SubscribeToFacilities_EX1
and
SimConnect_RequestFacilityData_EX1
would provide the region, and for
terminal navaids also the airport ident. Both of those pieces of information
are available in the JS facility API. I also note an issue in the
documentation for the VOR type:
ILS facilities give type 4, not type 6 as the docs suggest, amongst others.
Instead the type seems to match the vorClass type in the JS API
(https://github.com/flybywiresim/a32nx/blob/5697964080ec93223b3271ad5ac1ea626959cc49/src/fmgc/src/types/fstypes/FSEnums.ts#L208).