99ffeb4ab2
Signed-off-by: fly <merspieler@alwaysdata.net> |
||
---|---|---|
.. | ||
HID | ||
pi-files/MCDU | ||
README.md |
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 pissh -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
Runsudo 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 theflightgear/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 theMCDU.json
file and changesimhost
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 (firstrect
section in the file).