Skip to content

Latest commit

 

History

History

xplane

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Illustrates an X-Plane adapter for G3, fetching metrics from XPlane via NASA's XPlaneConnect plugin.

First install the XPlaneConnect plugin in your XPlane folder as explained in the README.

This repo includes a copy of xpc.py which is XPlaneConnect's Python client.

Individual metrics from XPlane, called datarefs, are mapped to G3 gauge metrics as described in mapping.yml, and supports both simple transformation and automated unit conversion. Note your XPlane installation also contains a full list of supported datarefs in Resources/plugins/DataRefs.txt.

You can test your mapping by starting up XPlane and running this command from the parent folder.

python -m xplane.fetch

You should see a dump of the currently mapped metrics:

{
    "airspeed": {
        "unit": "knot",
        "value": 66.05368041992188
    },
    "altitude": {
        "unit": "ft",
        "value": 7488.25341796875
    },
    "compass": {
        "unit": "deg",
        "value": 10.877249717712402
    },
    ...