Yoke for FlightGear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
(Syntaxhighlight, line breaks, formatting)
Line 1: Line 1:
Yoke for FlightGear(or FGYoke) are a virtual yoke for FlightGear on iOS and Android based on TCP.
Yoke for FlightGear(or FGYoke) are a virtual yoke for FlightGear on iOS and Android based on TCP.
Available in Apple Appstore.<br />
Available in Apple Appstore.
How to use:<br />
 
Install FGYoke first. <br />
How to use:
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 <br />
 
<?xml version="1.0"?><br />
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
<syntaxhighlight lang="xml">
<?xml version="1.0"?>
 
<PropertyList>
<PropertyList>
     <generic>
     <generic>
Line 24: Line 29:
         </input>
         </input>
     </generic>
     </generic>
</PropertyList><br />
</PropertyList>
</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.


Type in <code>--generic=socket,in,20,,12345,tcp,from_fgyoke</code> in settings when launching FlightGear.


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

Revision as of 22:42, 16 December 2016

Yoke for FlightGear(or FGYoke) are a virtual yoke for FlightGear on iOS and Android based on TCP. Available in Apple 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>
        </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,,12345,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.