Giter Site home page Giter Site logo

flightgear-2's Introduction

Remote Control Joystick Android App

Introduction

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.

MVVM Design Pattern

The app is based on the MVVM design pattern, which has 3 main components:

  1. Model: responsible to implement the algorithm that processing the data and transfer it to the FlightGear server
  2. View: The visual graphic interface that is displayed to the users.
  3. 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.

How to run the app on your machine?

Installations

In order to use our simulator app, please download the following:

  1. An editor for Android - we chose the Android Studio: https://developer.android.com/studio?gclid=Cj0KCQjw_dWGBhDAARIsAMcYuJzkOersbg8QCEtM3KCm6W6v0c4f8ugCVPC-FgTCzyDJ2Xg59Mg7LEsaAu5SEALw_wcB&gclsrc=aw.ds
  2. FlightGear (version 2020.3.8) - https://www.flightgear.org/
  3. Clone our project

Step by step guideline:

In order to use our simulator app, please follow the steps below:

  1. 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

image

  • Click the Fly button at the bottom left corner.
  • Click the Cessna tab and choose autostart
  1. 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:
    • Your private IP - to find your IP, open the CMD and type ipconfig and copy the following string:

      image

  • Port - 6400
  1. Then click Connect
  2. Now, using the app, you should be able to control the aircraft by using the two sliders of the throttle and the rudder.

android device

Code Design and UML:

uml

Video Presentation And Explanation

https://youtu.be/1s4YRsgLwvc

Video Presentation

https://youtu.be/rRVr9Poh9yU

Video Explanation

https://youtu.be/uNmJa99AYAk

Authors

  • Or Memia
  • Dvir Asaf

flightgear-2's People

Contributors

dvirasaf 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.