Code Monkey home page Code Monkey logo

flightkit's Introduction

FlightKit

Purpose

Open Source SDK for iOS, macOS, watchOS and tvOS to communicate with X-Plane flight simulator via UDP interface. The SDK is written primarily in C++11 to be kept mostly platform independent.

Components

  • FKTConnection - Objective-C wrapper to establish a connection to Xplane from any Apple OS platform.
  • XplaneConnection - Main C++ component for establishing a network connection to Xplane.
  • DataRecording - Stream listener for capturing flight data in a Sqlite database.

Usage

X-Plane offers a simple UDP data stream interface. A reference of the data format can be found here. To start sending and receiving data in X-Plane, go to Settings --> DataOutput and check Send network data output. Enter an IP to send data to (the computer listening to the data stream) as well as the port to send to. To start reading data as it comes in, open a FKTConnection via - (nonnull id) initReceivingOn:(NSInteger) inPort.

To be able to send data to X-Plane you will further have to make sure that the Port we receive on in Settings --> Network is set to 49000 or make sure that you call - (nonnull id) initReceivingOn:(NSInteger)inPort sendingTo: (NSInteger)outPort with outPort set to the port next to Port we receive on.

To let FlightKit actively request aircraft data from X-Plane (recommended), you can use - (nonnull id) initWithIP:(nullable NSString *)ip receivingOn: (NSInteger)inPort sendingTo: (NSInteger)outPort. The IP you enter will be the IP of the computer running X-Plane, inPort the port set in Data Output and outPort the Port we receive on in Network.

Once FlightKit has connected to X-Plane, it will trigger a sound snippet in the flight simulator to indicate the connection.

License

MIT License

flightkit's People

Contributors

dannyvancura avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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