Version 1.4
~~~~~ NOW WITH AHRS SUPPORT!!! ~~~~~
That means native support for:
ForeFlight
SkyDemon
WingX Pro
FltPlan Go
and possibly may more!
Use the AHRS option when setting up the
DCS_NMEA.lua and X-Plane as source in your
nav app
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use this to export GPS NMEA GGA and RMC sentences to be used with any application or device capable of using them, or AHRS sentences (ForFlight, SkyDemon, WingX Pro, FltPlan Go, etc.).
UDP or Serial Port export is available.
An example of ILS approach with ForeFlight, using DCS-to-GPS, by Roman_Actual (aka "Basic to Final" @ YT)
https://www.youtube.com/watch?v=2jwSlszjn8w
Use this to export GPS NMEA GGA and RMC sentences to be used with any application or device capable of using them, or AHRS sentences (ForFlight, SkyDemon, WingX Pro, FltPlan Go, etc.).
UDP or Serial Port export is available. To activate any of these see the CONFIGURATION section.
REMEMBER!!! The world is flat! ...at least according to Eagle Dynamics. Therefor the position information taken from DCSW
does not perfectly correspond to the same in the real world. It gets worse the closer to map boarders you get.
Should not cause troubles in MP, but since I'm an exclusive SP myself I can't make any promises.
************** A little Heads up! *************
If you use SRS (DCS-SimpleRadioStandalone), make sure the line in Export.lua related to SRS comes AFTER the one for DCS-to-GPS. It won't work otherwise.
Thanks to Drakoz for this solution. Have been verified by myself.
***********************************************
Use, distribute and copy any parts of this script as you like, but please acknowledge your source.
Thanks to:
* leonpo, who created the telemetry export file upon which this script is based on originally.
Not much of the original file is left. His (no longer active) project can be found here:
https://forums.eagle.ru/showthread.php?t=97890
* BR=55=Sevas, who pointed me in the right direction regarding ground speed and course.
* Eagle_Rising for pointing me to ForeFlight communication instructions
* muehlema for testing ForeFlight functionality and pictures on User Files
* Drakoz for finding a workaround for the SRS conflict
* robgraham for making me aware of OzRunways and Pascal Scheffers at OzRunways for helping out
* "The Internet" for its vast amount of information required for me to complete this project...
Change-log
----------
1.0
* Initial release
1.1
* Corrected how LoGetSelfData is handled when it returns nil (happens in spectator mode, when crashed, etc)
Still do not know for sure if LoGetSelfData is handled correctly when allow_ownship_export = false
1.2
* ForeFlight support
1.3
* Hopefully simplified setup procedure, everything in the same section in the beginning of DCS_NMEA.lua
1.4
* Enhanced the XATT sentence after some tips regarding OzRunways. Hopefully XATT is now fully implemented with 12 values
* Possibility to send data to several Serial Ports (COM ports) at the same time
CONTENT
- readme.txt
- Export.lua
- DCS_NMEA.lua
INSTALLATION
1) Read the readme.txt and go from there.
Support thread:
https://forums.eagle.ru/showthread.php?t=231091
************** A little Heads up! *************
If you use SRS (DCS-SimpleRadioStandalone), make sure the line in Export.lua related to SRS comes AFTER the one for DCS-to-GPS. It won't work otherwise.
Thanks to Drakoz for this solution (post #71). Have been verified by myself.
***********************************************
An excellent tutorial video by Roman_Actual (aka "Basic to Final" @ YT)
https://www.youtube.com/watch?v=n_0qHk7FIcA
(in the video both NMEA and AHRS over UDP are activated. For ForeFlight and similar applications handling AHRS, only the AHRS over UDP is needed. The NMEA is used for real GPS devises or spoofing the GPS on a phone/tablet. The NMEA over serial port (COM) is the same as for over UDP, just another protocol option)
An example of ILS approach with ForeFlight, using DCS-to-GPS, same creator as above
https://www.youtube.com/watch?v=2jwSlszjn8w
Thanks Roman_Actual for these excellent videos!
Good Luck!
/Holton181