Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Yoke for FlightGear"

From FlightGear wiki
Jump to: navigation, search
m (Fix grammar)
m (Fix image in infobox)
Line 1: Line 1:
__NOTOC__
 
 
{{Infobox Software
 
{{Infobox Software
 
| title              = Yoke for FlightGear
 
| title              = Yoke for FlightGear
 
| logo                =  
 
| logo                =  
 
| logosize            =  
 
| logosize            =  
| image              = [[File:Screenshot of FGYoke in AppStore.png|thumb|Screenshot of FGYoke in AppStore]]
+
| image              = Screenshot of FGYoke in AppStore.png
| alt                =
+
| alt                = Screenshot of FGYoke in AppStore
 
| developedby        = iOS app by Sidi Liang, Android app by CHH2000Day
 
| developedby        = iOS app by Sidi Liang, Android app by CHH2000Day
 
| initialrelease      =  
 
| initialrelease      =  
Line 12: Line 11:
 
| os                  = iOS, Android
 
| os                  = iOS, Android
 
| platform            = Mobile
 
| platform            = Mobile
| developmentstatus  = Production
+
| developmentstatus  = Production
 
| developmentprogress =
 
| developmentprogress =
 
| type                = Virtual control
 
| type                = Virtual control

Revision as of 05:07, 17 December 2019

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