Yoke for FlightGear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 85: Line 85:
Start FlightGear, and click on the switch in the app. If it stays on "On" position, then the connection was successful.
Start FlightGear, and click on the switch in the app. If it stays on "On" position, then the connection was successful.


=== Tips to reduce latency in iOS version===
== 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.
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.

Revision as of 05:50, 30 June 2019

Yoke for FlightGear
[[File:
Screenshot of FGYoke in AppStore
|270px|]]
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 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 is going to run 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 in the app. If it stays on "On" position, then 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 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.

Forum topics

External links