- Tomer Shay
- Roei Gida
This is an android application for controlling FlightGear flight simulator.
This application connect to FlightGear, flight simulator, and let the user control the planes' velocity and directions while the simulator displays the flight.
The application interfaces with the FlightGear simulator (instruction for download at Dependencies) and they work side-by-side. The idea is that the user will connect to flightGear simulator with the FlightGears' IP and Port and will control the plane through the controls the app displays. the application will let the user control the throttle, aileron, rudder and the elevator.
This project designed according to MVVM architecture. The classes can be divided into two groups in order to create total segregation between the presentation logic and the business logic. The presentation logic implemented in:
- View class
- JoystickView class
The business logic implemented in:
- Model class
This classes can communicate via the ViewModel class that constitutes as an abstract Model layer to the View and as an abstract View layer to the Model. You can see more information about the class hierarchy and the project structure in UML and in Project Sturcture.
- Connect button When the user clicks on
connect
button, a connection is made to the FlightGear server using the entered IP and PORT addresses. - Start engine: When clicking the
Start Engine
button the planes' engine will start. - SeekBars: When moving the horizontal
seek bar
the user can control the rudder and by moving the verticalseek bar
the user can control the throttle. - Joystick: Joystick: When moving the
Joystick
up and down the user can control the elevator value and by moving the joystick to the sides you can control the aileron value.
For more features explanations, you can watch this video.
- FlightGear
- Kotlin
- Android emulator or an android device
-
Open FlightGear from command line:
$ cd C:\Program Files\FlightGear 2020.3.6 $ cd bin $ start fgfs.exe --telnet=socket,in,10,127.0.0.1,5400,tcp
Notice that
C:\Program Files\FlightGear 2020.3.6
is the path to the place where you download the FlightGear. -
Click fly on FlightGear.
-
Clone the repository from another command line:
$ git clone https://github.com/roeigida/Flight-Remote-App.git
-
After running the application, check IP of the machine that is running the FlightGear. you can do it in the command line using the command
ifconfig
(Linux) oripconfig
(Windows). you should enter this IP to the "IP" field in the app ( and enter 5400 as a port).