FlightGearControllerApp2/README.md

44 lines
1.5 KiB
Markdown
Raw Normal View History

2021-06-27 04:38:56 +08:00
# Android Joystick App
2021-06-27 05:00:40 +08:00
[Demo](https://youtu.be/lIkFrhPQ-Yg)
#### Submitters:
2021-06-27 19:23:13 +08:00
Omer Schloss - 313301764
2021-06-27 05:00:40 +08:00
Avraham Bar Ilan - 205937949
2021-06-27 04:51:50 +08:00
## Summary
2021-06-27 16:45:25 +08:00
This project is a remote control joystick that connect "FlightGear" simulator and control the plane remotely.
2021-06-27 19:22:59 +08:00
The project implemented in MVVM architecture and written with kotlin.
2021-06-27 04:38:56 +08:00
2021-06-27 19:53:13 +08:00
You can download a .apk file of the app [from here](https://github.com/OmerSchloss/FlightGearControllerApp/blob/master/FlightGearController.apk)
2021-06-27 19:54:59 +08:00
Or you can clone this repo and run it with Android Emulator on your computer
## Setup
2021-06-27 19:46:48 +08:00
* Install Flight Gear Simulator ([Download from here](https://www.flightgear.org/download/)).
2021-06-27 04:38:56 +08:00
* Inside FlightGear go to Setting -> Additional Settings and write:
``--telnet=socket,in,10,127.0.0.1,6400,tcp``.
2021-06-27 19:46:48 +08:00
* Press Fly and press Autostart.
2021-06-27 04:38:56 +08:00
2021-06-27 04:48:43 +08:00
![App](https://user-images.githubusercontent.com/60196825/123525379-dcc35180-d6d8-11eb-8a40-428ac9f3342f.png)
2021-06-27 04:51:17 +08:00
![Msg](https://user-images.githubusercontent.com/60196825/123525430-417eac00-d6d9-11eb-8c10-2e22e527ae12.png)
2021-06-27 04:51:50 +08:00
## Run
2021-06-27 19:46:48 +08:00
* Run the App.
2021-06-27 04:38:56 +08:00
* Put your computer IP in the field and put ``6400`` in port field.
2021-06-27 04:48:43 +08:00
* press Connect To FlightGear and hit the Throttle up :airplane:.
2021-06-27 04:38:56 +08:00
* Enjoy your flight.
2021-06-27 04:51:50 +08:00
## UML
2021-06-27 19:23:43 +08:00
As you can see the code is divided into 3 main sections: View, ViewModel and Model
2021-06-27 04:43:58 +08:00
![UML](https://user-images.githubusercontent.com/60196825/123525299-3a0ad300-d6d8-11eb-917c-306fd31477f5.jpg)
2021-06-27 04:38:56 +08:00
2021-06-27 04:51:50 +08:00
## Demo presentation
2021-06-27 04:54:25 +08:00
[Here is a nice presentation of the project](https://youtu.be/lIkFrhPQ-Yg)
2021-06-27 04:55:41 +08:00
(flight starts at 2:45)