In this Android app, the user is allowed to control a Flight Gear simulator using a remote control for the Joystick in the flight gear.
The app is based on the MVVM design pattern, which has 3 main components:
- Model: responsible to implement the algorithm that processing the data and transfer it to the FlightGear server
- View: The visual graphic interface that is displayed to the users.
- View Model: The primary responsibility of the ViewModel is to provide data to the View, so that View can put that data on the screen. It also allows the user to interact with data and change the data.
In order to use our simulator app, please download the following:
- An editor for Android - we chose the Android Studio: https://developer.android.com/studio?gclid=Cj0KCQjw_dWGBhDAARIsAMcYuJzkOersbg8QCEtM3KCm6W6v0c4f8ugCVPC-FgTCzyDJ2Xg59Mg7LEsaAu5SEALw_wcB&gclsrc=aw.ds
- FlightGear (version 2020.3.8) - https://www.flightgear.org/
- Clone our project
In order to use our simulator app, please follow the steps below:
-
In the FlightGear app:
-
go to Settings -> Additional settings. Then, in the text box at the bottom, paste the following text:
--telnet=socket,in,10,127.0.0.1,6400,tcp
-
- Click the
Fly
button at the bottom left corner. - Click the
Cessna
tab and chooseautostart
- Now, in your editor, run the project. Then, a small window should pop up (mocking an Android phone). In the app you will be required to supply two parameters:
- Port - 6400
- Then click
Connect
- Now, using the app, you should be able to control the aircraft by using the two sliders of the throttle and the rudder.
- Or Memia
- Dvir Asaf