Yoke for FlightGear

From FlightGear wiki
Revision as of 10:07, 17 December 2019 by Gijs (talk | contribs) (Fix image in infobox)
Jump to navigation Jump to search
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.3; Android: 0.3.0
Written in Swift, Objective-C, Java
OS iOS, Android
Platform Mobile
Development status Production
Type Virtual control

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

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 Mac OS, it should be '/Applications/FlightGear.app/Contents/Resources/data/Protocol'.

<?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/engine/throttle</node>
            </chunk>
            <chunk>
                <name>throttle1</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/engines/engine[1]/throttle</node>
            </chunk>
            <chunk>
                <name>throttle2</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/engines/engine[2]/throttle</node>
            </chunk>
            <chunk>
                <name>throttle3</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/engines/engine[3]/throttle</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