Yoke for FlightGear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:


Android version [https://github.com/CHH2000day/YokeEmulatorforFG/releases download]
Android version [https://github.com/CHH2000day/YokeEmulatorforFG/releases download]
[[File:Screenshot of FGYoke in AppStore.png|thumb|Screenshot of FGYoke in AppStore]]
== How to use ==
== How to use ==



Revision as of 10:40, 24 January 2018

Yoke for FlightGear
Developed by iOS app by Sidi Liang, Android app by CHH2000Day
Latest release iOS: 1.1.2; Android: 0.3.0
Written in Swift, Objective-C, Java
OS iOS, Android
Platform Mobile
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

Screenshot of FGYoke in AppStore

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 data folder of FlightGear. 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, and type in the IP address and the port number of the computer that are going to run FlightGear. In this case, we can use 23333 as 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 in the app. If it stays on "On" position, then the connection was successful.

Forum topics

External links