Howto:Build and run FlightGear on Raspberry Pi 4: Difference between revisions

Jump to navigation Jump to search
Line 170: Line 170:


Of course the file needs to be saves. Depending where the file is located, permissions might need to be dealt with.
Of course the file needs to be saves. Depending where the file is located, permissions might need to be dealt with.
=== Honeycomb Aeronautical Alpha Flight Controls - Yoke ===
{{not done}}
The Honeycomb Aeronautical Alpha Flight Controls yoke is a quality flight yoke that works with the Raspberry Pi and FlightGear. The buttons on the yoke are standard normally open, where as the base buttons are normally closed double throw and one five position rotary.
<syntaxhighlight lang="xml">
<?xml version="1.0"?>
<!--
************************************************************************
* Bindings for Honeycomb Aeronautical Alpha Flight Controls - Yoke
*
*
* Axis 0: ailerons
* Axis 1: elevator
* Axes 2 and 3 (hat): view direction
*
* Button  0: ?
* Button  1: ?
* Button  2: ?
* Button  3: ?
* Button  4: ?
* Button  5: ?
* Button  6: ?
* Button  7: ?
* Button  8: ?
* Button  9: ?
* Button  0: ?
* Button 11: ?
* Button 12: ?
* Button 13: ?
* Button 14: ?
* Button 15: ?
* Button 16: ?
* Button 17: ?
* Button 18: ?
* Button 19: ?
* Button 20: ?
* Button 21: ?
* Button 22: ?
* Button 23: ?
* Button 24: ?
* Button 25: ?
* Button 26: ?
* Button 27: ?
* Button 28: ?
* Button 29: ?
* Button 30: BASE Off
* Button 31: BASE Right Mag
* Button 32: BASE Left Mag
* Button 33: BASE Both Mag
* Button 34: BASE Start
************************************************************************
-->
<PropertyList>
  <name type="string">Honeycomb Aeronautical Alpha Flight Controls</name>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~ Ailerons ~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~ Elevator ~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <factor type="double">-1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~ Hat Switch ~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <axis n="2">
    <desc type="string">View Direction</desc>
    <direction type="string">left</direction>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">nasal</command>
        <script type="string">view.panViewDir(1)</script>
        <module type="string">__js1</module>
        <offset type="double">1</offset>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">nasal</command>
        <script type="string">view.panViewDir(-1)</script>
        <module type="string">__js1</module>
        <offset type="double">1</offset>
      </binding>
    </high>
  </axis>
  <axis n="3">
    <desc type="string">View Elevation</desc>
    <direction type="string">upward</direction>
    <low>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">nasal</command>
        <script type="string">view.panViewPitch(1)</script>
        <module type="string">__js1</module>
        <offset type="double">1</offset>
      </binding>
    </low>
    <high>
      <repeatable type="string">true</repeatable>
      <binding>
        <command type="string">nasal</command>
        <script type="string">view.panViewPitch(-1)</script>
        <module type="string">__js1</module>
        <offset type="double">1</offset>
      </binding>
    </high>
  </axis>
  <button>
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="1">
    <desc type="string">Gear Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.gearDown(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="2">
    <desc type="string">Gear Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.gearDown(-1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="4">
    <desc type="string">Elevator Trim Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(-1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="5">
    <desc type="string">Elevator Trim Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="6">
    <desc type="string">Flaps Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="7">
    <desc type="string">Flaps Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.flapsDown(-1);</script>
    </binding>
    <repeatable type="double">0</repeatable>
  </button>
  <button n="8">
    <desc type="string">Rudder Trim Left</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.rudderTrim(-1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="9">
    <desc type="string">Rudder Trim Right</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.rudderTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="10">
    <desc type="string">Aileron Trim Left</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(-1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="11">
    <desc type="string">Aileron Trim Right</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.aileronTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
</PropertyList>
</syntaxhighlight>


=== Thrustmaster Flight Rudder Pedals ===
=== Thrustmaster Flight Rudder Pedals ===
320

edits

Navigation menu