Yoke for FlightGear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Update version)
No edit summary
Line 21: Line 21:
iOS version available in Apple Appstore.  <br />
iOS version available in Apple Appstore.  <br />
Android version [https://github.com/CHH2000day/YokeEmulatorforFG/releases download]   
Android version [https://github.com/CHH2000day/YokeEmulatorforFG/releases download]   
'''Developer note: Because of my developer program has expired, the iOS version of FGYoke is not available at the time. I will get it back on stock before July. '''


== How to use ==
== How to use ==

Revision as of 00:07, 24 March 2020

Yoke for FlightGear
Screenshot of FGYoke in AppStore
Screenshot of FGYoke in AppStore
Developed by iOS app by Sidi Liang, Android app by CHH2000Day
Latest release iOS: 1.1.5; Android: 0.3.0
Written in Swift, Objective-C, Java
OS iOS, Android
Platform Mobile
Development status Production
Type Virtual control
Website

Yoke for FlightGear (FGYoke) is a virtual yoke app based on TCP for iOS and Android.

iOS version available in Apple Appstore.
Android version download

Developer note: Because of my developer program has expired, the iOS version of FGYoke is not available at the time. I will get it back on stock before July.

How to use

Install FGYoke first.

Save the code as from_fgyoke.xml, or download it from here, then copy it to the 'Protocol' folder under the FGDATA. For macOS, it should be '/Applications/FlightGear.app/Contents/Resources/data/Protocol'. Note: the following file is for version 1.1.5 ONLY. For users using 1.1.3 or earlier version, see here

<?xml version="1.0"?>
<PropertyList>
    <generic>
        <input>
            <line_separator>newline</line_separator>
            <var_separator>,</var_separator>
            <chunk>
                <name>aileron</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/flight/aileron</node>
            </chunk>
            <chunk>
                <name>elevator</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/flight/elevator</node>
            </chunk>
            <chunk>
                <name>throttle</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/engines/throttle-all</node>
            </chunk>

        </input>
    </generic>
</PropertyList>

Go to the setting page, then type in the IP address and the port number of the computer for FlightGear. In this case, we can use 23333 as the port number. Click Save.

Type in --generic=socket,in,20,,23333,tcp,from_fgyoke in settings when launching FlightGear.

Start FlightGear, and click on the switch icon in the app. If it stays on "On" position, the connection was successful.

Tips to reduce latency in iOS version

There may be some latency due to a bad Internet environment. If you have a lightning cable, you may make use of the Personal Hotspot.

After connecting your iPhone/iPad to your computer, switch on the personal hotspot of your phone and check the Internet settings of your computer to make sure it is connected (In MacOS, there should be an iPhone USB tab in settings). Then either check your IP address in settings or using ifconfig/ipconfig depending on what system you are on.

This method could also be used when there is no Internet available for FGYoke.

Haven't been tested, but the Android version should also work in the same way.

Forum topics

External links