Giter Club home page Giter Club logo

rtt-client's Introduction

RTTClient for Raspberry Pi 4

This is a RTTClient for Raspberry Pi 4 that I wrote for my MFDs.

I didn't want to run another two cables to the front of my pit and I can't add anymore outputs to my main computer anyway as it's running 3 projectors. Adding more outputs with different resolutions messes up the Flyelise and nvidia warping.

Current Features:

Display support:

  • HUD
  • PFL
  • DED
  • RWR
  • MFDLEFT
  • MFDRIGHT
  • HMS

Additional Features:

  • Ability to Flip in both Horizontal and Vertical (e.g HUD_FLIPPED_VERTICALLY = 1 or HUD_FLIPPED_HORIZONTALLY = 1)
  • Move and Resize the windows (WINDOWS_MOVABLE = 1 - This doesn't actually save the values to the ini file, but help you find the values to put in the ini file)
  • Show Position on screen (SHOW_POSITION_INFO = 1 to help get the current values after moving and resizing)
  • Set Background Images for each display instead of the standard orange helpers. (MFDLEFT_BACKGROUND_IMAGE = "path to png or jpg image file")

Possible future enhancements:

  • ONTOP
  • RWR_GRID
  • SHAREDMEMORY
  • RENDERER (It just uses the default right now, I think Rpi supports OpenGL, OpenGL ES and OpenGL ES2)
  • Cross platform to this can be used on Windows or Mac

Setup

You will need to build this project.

One way is to follow these steps (can be done in many different ways)

Install the following dependencies:

sudo apt-get install -y build-essential gdb g++ zip cmake
sudo apt-get install -y libsdl2-dev
sudo apt install -y libsdl2-image-dev
sudo apt install -y libsdl2-ttf-dev
sudo apt-get install -y libglew-dev

Clone RakNet from here : https://github.com/larku/RakNet Put it in ~\RakNet

  • The following options need to be set in "RakNetDefinesOverrides.h" to make it compatible at with RTTServer at compile time:
  • #define USE_SLIDING_WINDOW_CONGESTION_CONTROL 0

Compile place the libraries in the correct folders

Clone this project in a folder like ~/projects/rttclient on your Rpi 4. Go to the folder and run:

cmake .
cmake --build .

This will create a RTTClient file in the src folder. Copy the following files to a new folder here ~/RTTClient

RTTClient
RTTClient.ini
font.ttf
start.sh

To autostart the RTTClient when you boot the Rpi create this file:

nano .config/autostart/rtt.desktop

and enter this in the file and save:

[Desktop Entry]
Type=Application
Name=RTTClient
Exec=/home/pi/RTTClient/start.sh

If you put the RTTClient executable in a different folder, you will need to modify this and the startup.sh script.

You might have to make both the RTTClient and the start.sh executable using the chmod +x command

rtt-client's People

Contributors

johndcollins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.