BitsAndDroids / FlightConnector-Rust

Connect and interface your diy hardware to mfs2020.
3 stars 0 forks source link

Flight connector

This is a rewrite of the original connector written in C++. The original repo can be found at: https://github.com/BitsAndDroids/Bits-and-Droids-flight-connector

image

Documentation

The documentation can be found in the open-source docs Flightconnector Docs book.

The documentation is made using mdbooks. You can find the documentation files in the connector-docs folder if you want to contribute.

How does it work

The connector makes use of serial communication to communicate between your microcontrollers.

Outputs

image The connector receives commands from Microsoft Flight Simulator 2020 and translates these commands to serial messages. These messages are formatted as "{ID} {VALUE}". Your able to write your own translation layer to decode the messages on your microcontrollers. Your also able to utilize the Flight sim library to do the heavy lifting for you.

Inputs

image The connector also listens to inputs from your microcontrollers. This makes use of an ID system to translate incomming messages to simulation events. The flight sim library can be used to simplify this process.

Library

The library can be installed from the official Arduino IDE. You can also download the library from the Github repo.

Install

Running the application

The application is structured to run on Windows and Linux. Linux is only usable for development purposes. All SimConnect logic has been excluded when using Linux.

* This only has to be done when you start the application for the first time or when packages have been changed/added (in the package.json file)

React

The frontend is developed in React. It uses the React-router-dom package for internal navigation.

Learn More

To learn more about React, take a look at the following resources:

Component library (Storybook)

Storybook is a powerful tool for developing and showcasing components in isolation. It serves as a component library, allowing you to browse a collection of components and interact with them in isolation from the rest of the application. This can greatly enhance the development and testing process, as well as provide a useful reference for the team.

In this repository, Storybook is used to:

To run Storybook, use the following command in your terminal:

pnpm run storybook

This will start the Storybook server and open it in your default web browser.