A320-homecockpit/Simulators/flightgear
fly 99ffeb4ab2 First version of flightgear RMP config
Signed-off-by: fly <merspieler@alwaysdata.net>
2025-01-29 01:19:26 +01:00
..
HID First version of flightgear RMP config 2025-01-29 01:19:26 +01:00
pi-files/MCDU Document rasppi setup for MCDU displays 2025-01-16 17:56:41 +01:00
README.md Document rasppi setup for MCDU displays 2025-01-16 17:56:41 +01:00

Flightgear Integration

This directory contains the configuration files and instructions to make this work out of the box with the flightgear A320. Copy or Symlink the config files into the respective directory in $FGHOME/Input/.

MCDU Display

The displays get run by a raspberry pi or similar SBC, These instructions have been tested on a pi 2 and pi 3, you may need to adapt them if you use a different SBC.

Install latest raspbian lite image onto the pi: https://www.raspberrypi.com/software/operating-systems/ Run sudo raspi-config and set the following:

  • Set a recognizable host name under System Options
  • Enable ssh under Interface Options
  • Expand the file system under Advanced Options Reboot so it gets the new name also on the network
    SSH into the pi ssh -o PubkeyAuthentication=no -o PreferredAuthentications=password <user>@<hostname> Install needed packages for the setup and build tools for FGQCanvas: sudo apt-get update && sudo apt-get install git cmake make gcc qtbase5-dev qtbase5-private-dev libqt5websockets5-dev qtdeclarative5-dev qtdeclarative5-private-dev qtquickcontrols2-5-dev qtquickcontrols2-5-private-dev xbanish lightdm i3 accountsservice qml-module-qtquick2
    Run sudo raspi-config again and set the following:
  • Setup autologin into desktop under System Options Clone the flightgear repo: git clone https://gitlab.com/flightgear/flightgear.git
    Go into the flightgear/utils/fgqcanvas and run:
  • cmake .
  • make -j$(nproc)
  • sudo make install Copy the following files to the pi:
  • pi-files/MCDU/i3.config to ~/.config/i3/config
  • pi-files/MCDU/MCDU.json to ~/MCDU.json Depending on the orientation of your display, you may need to change the xrandr command in the i3 config file. Edit the MCDU.json file and change simhost to the host name or IP of the PC where flightgear runs on. If you don't use port 8080, change that too. In there you can also fine tune size and position of where the display will be rendered (first rect section in the file).