Skip to content

roeigida/Flight-Remote-App

Repository files navigation

Flight-Remote-App

Contributes

  • Tomer Shay
  • Roei Gida

This is an android application for controlling FlightGear flight simulator.

  1. General
  2. Dependencies
  3. Installation

General

Background

This application connect to FlightGear, flight simulator, and let the user control the planes' velocity and directions while the simulator displays the flight.

Project Description

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.

Project Structure

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.

Features

  • 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 vertical seek 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.

Dependencies

  1. FlightGear
  2. Kotlin
  3. Android emulator or an android device

Installation

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

  2. Click fly on FlightGear.

  3. Clone the repository from another command line:

    $ git clone https://github.com/roeigida/Flight-Remote-App.git
    
  4. 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) or ipconfig (Windows). you should enter this IP to the "IP" field in the app ( and enter 5400 as a port).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages