Yoke for FlightGear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
No edit summary
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
{{Infobox Software
{{Infobox Software
| title              = Yoke for FlightGear
| title              = Yoke for FlightGear
| logo                =  
| logo                =  
| logosize            =  
| logosize            =  
| image              =  
| 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      =  
| latestrelease      = iOS: 1.0.2; Android: 0.3.0
| latestrelease      = iOS: 1.1.5; Android: 0.3.0
| writtenin          =  
| writtenin          = Swift, Objective-C, Java
| os                  = iOS, Android
| os                  = iOS, Android
| platform            =  
| platform            = Mobile
| developmentstatus  =  
| developmentstatus  = Production
| developmentprogress =  
| developmentprogress =
| type                = Virtual control
| type                = Virtual control
| license            =  
| license            =  
| website            =  
| website            = https://www.fgprc.org
}}
}}
'''Yoke for FlightGear''' ('''FGYoke''') is a virtual yoke app based on TCP for iOS and Android.
'''Yoke for FlightGear''' ('''FGYoke''') is a virtual yoke app based on TCP for iOS and Android.


iOS version available in Apple Appstore.
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 ==


Install FGYoke first.
Install FGYoke first.


Save the code as from_fgyoke.xml , or download it from [https://github.com/sidi762/FGYoke-for-iOS/blob/master/from_fgyoke.xml 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
Save the code as from_fgyoke.xml, or download it from [https://github.com/sidi762/FGYoke-for-iOS/blob/master/from_fgyoke.xml 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 [https://raw.githubusercontent.com/sidi762/FGYoke-for-iOS/80e8558f7c22a5fb6e03af834f3a8f907d86f4ae/from_fgyoke.xml here]
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<?xml version="1.0"?>
<?xml version="1.0"?>
<PropertyList>
<PropertyList>
     <generic>
     <generic>
Line 47: Line 50:
                 <node>/controls/flight/elevator</node>
                 <node>/controls/flight/elevator</node>
             </chunk>
             </chunk>
            <chunk>
                <name>throttle</name>
                <type>float</type>
                <format>%f</format>
                <node>/controls/engines/throttle-all</node>
            </chunk>
         </input>
         </input>
     </generic>
     </generic>
</PropertyList>
</PropertyList>
</syntaxhighlight>
</syntaxhighlight>


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.
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 <code>--generic=socket,in,20,,23333,tcp,from_fgyoke</code> in settings when launching FlightGear.
Type in <code>--generic=socket,in,20,,23333,tcp,from_fgyoke</code> 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.
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.


== Related content ==
Haven't been tested, but the Android version should also work in the same way.
=== Wiki articles ===
* [[FlightGear TQPanel]]


=== Forum topics ===
== Forum topics ==
* [https://forum.flightgear.org/viewtopic.php?f=6&t=31488 A Yoke for FlightGear on iOS/Android]
* [https://forum.flightgear.org/viewtopic.php?f=6&t=31488 A Yoke for FlightGear on iOS/Android]


== External links ==
== External links ==
* [https://itunes.apple.com/se/app/yoke-for-flightgear/id1180439266?mt=8 Yoke for FlightGear] Apple App Store.
* [https://itunes.apple.com/se/app/yoke-for-flightgear/id1180439266?mt=8 Yoke for FlightGear] on Apple App Store.


[[Category:Android apps]]
[[Category:Android apps]]
[[Category:IOS apps]]
[[Category:IOS apps]]
[[zh:Yoke for FlightGear]]

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