-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53b343e
commit 7d5c804
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2018 Daniel Vancura | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# FlightKit | ||
|
||
## Purpose | ||
|
||
Open Source SDK for iOS, macOS, watchOS and tvOS to communicate with [X-Plane](http://www.x-plane.com) 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](http://www.nuclearprojects.com/xplane/xplaneref.html). 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](LICENSE.md) |