Git Product home page Git Product logo

flightgear-simulator-web-app's Introduction

FlightGear-Simulator-Web-App

A web application that is used to display the position of the aircraft in real time. Implemented using JavaScript

Installing

like the installing at "FlightGear-Simulator-Interpreter".

Preparing to lift off

a. First, you may need to adjust the time in the simulator from nighttime to daytime in order to see clearly. Click on the Environment tab in the toolbar shown below, and click on Time Settings. Adjust the time to your liking. b. Next, in order to help you speed things up and bypass the take-off procedures, click on the Cessna C172P tab, and click on Autostart. This will start the engine and prepare the aircraft to lift off.

Displays the displacement of the aircraft

Run the simulator and click on the 'Fly!' icon in the bottom left corner. Next, run the application. Your default internet browser will open with the address 'localhost:xxx', where 'xxx' is a number. There are four types of requestes you can perform which we will cover.

Single point

The requst will show the current position of the aircraft. To achieve this, type in the following request:

localhost:xxx/display/ip/port

The outcome will be:

Route of point

You can choose to see the airplane progress track. You need type how many point in one secand you want to get. To achieve this, type in the following request:

localhost:xxx/display/ip/port/dealy

The outcome will be:

Save the route

The next option is to save the point of the track that the airplane did at a file. you chose how many point in secand, for how long secand to save and the name of the file. If the file does not exist, it will create a new one. Otherwise, it will overwrite what exists and write the data within the file. To achieve this, type in the following request:

localhost:xxx/save/ip/port/delay/total_time/file_name

display from the file

after you save the data of the route, you can display it. you need to choose the name of the file and this will show the next point in the route every 'delay' seconds. In the end of all the piont you get a 'alert' massage. To achieve this, type in the following request:

localhost:xxx/file_name/delay

flightgear-simulator-web-app's People

Contributors

yael1994 avatar

Watchers

 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.