Skip to main content

PyQt5 application connecting to X-Plane flight simulator and displaying a garmin G5 attitude indicator as well as Horizontal Situation indicator

Project description

PyG5

CI

Description

This project aims at development a Garmin G5 view targeting a Raspberry Pi 7 inches display (640x480) . The intent is to provide a G5 Attitude indicator + G5 Horizontal Situation Indicator stacked on the display in vertical mode. The pyG5 connects to X-Plane flight simulator.

It does not require any plugin and use the standard DREF UDP interface from X-Plane. It should not require any configuration. Start it and it will connect to X-Plane and fetch the required data.

This is currently developed on macOS with python 3.9 and testing on a Raspberry Pi 4 with Raspberry Pi OS and an official 7 inches display in vertical mode.

Below is a view of the user interface.

demoView

And you can see it in its simulation environment

flightSimView

Maturity

It's currently in pretty early phase. It's functional and should be easy to install but might suffer from issues here and there.

Not all the features of the G5 are implemented. It's currently missing:

  • Glide scope
  • lateral guidance on the AI
  • Distance to next way point on the Horizontal Situation Indicator.

Installation

pyG5 depends on PyQt5. Due to failure to install PyQt5 from pip on Raspberry Pi OS it is not a dependency of the pyG5. As a result it needs to be installed manually.

Raspberry Pi OS:

        > sudo apt-get install python3-pyqt5

other OS:

        > sudo pip3 install PyQt5

The install PyG5:

        > sudo pip3 install pyG5

Running

        > pyG5DualStacked

Running on Raspberry Pi it is recommended to install FreeSans fonts in order to be consistent with the rendering on the current main development platform, ie. macOS. Most liked this is solved with:

        > sudo apt-get install libfreetype6

Developers

If you intend to develop based on this project. At a glance:

  • The application runs on PyQt5 event loop.
  • It's loosely implementing a Model View Controller coding style
  • The pyG5Network contains X-Plane network interface is monitoring the connection and feed data at 30Hz to a slot
  • The view is repainting the interface every time the data is received from the network interface
  • The pyG5Widget is derived twice into and Horizontal Situation Indicator and an AI. the pyG5DualStack instantiate both into a single widget. That means it's easy to build the view with just one of them.
  • The pyG5Main module contains the application and the main window class.

Running from sources

Clone the repository

        > git clone 

Initialize the virtual environment

        > source bootstrap.sh

Start the Application

        > python -m pyG5.pyG5Main

In order to evaluate the design without X-Plane running you can use:

        > python -m pyG5.pyG5ViewTester

This will feed the data from the sliders in the UI instead of the X-Plane network interface:

ViewTester

License

License files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyG5-0.0.1b7.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

pyG5-0.0.1b7-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file pyG5-0.0.1b7.tar.gz.

File metadata

  • Download URL: pyG5-0.0.1b7.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyG5-0.0.1b7.tar.gz
Algorithm Hash digest
SHA256 9c9e5307c60ac57671eefa7175026adbbadd7f4e19de876e75a1d7462ff7858c
MD5 b0fb3cc194a42756b6100714e6177e84
BLAKE2b-256 087c889fa2ae59d908756cd7d228d91159af423d6cb7ccd107a3bdf89f3911a5

See more details on using hashes here.

File details

Details for the file pyG5-0.0.1b7-py3-none-any.whl.

File metadata

  • Download URL: pyG5-0.0.1b7-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyG5-0.0.1b7-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c58fe594b3961afe5b25d78971f167fd00ebf2d297e54082425520c986f9c1
MD5 5ed667a73e30a9033ebaf6d2e7977b91
BLAKE2b-256 0c643769a032fc0a181b00cbabe9e78e65811c64d60d0e2f1a8ff20a9cbed3e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page