Howto:Implement pushback: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 2: Line 2:
Currently, pushback is only used on [[JSBSim]] planes.
Currently, pushback is only used on [[JSBSim]] planes.


Within a short period, some generic pushback models will be available in the <tt>$FG_ROOT/Models</tt> directory. These models can be used at any plane, in a process that is described below.
'''Within a short period, some generic pushback models will be available in the <tt>$FG_ROOT/Models</tt> directory. These models can be used at any plane, in a process that is described below.'''


===Systems/pushback.xml===
===Systems/pushback.xml===
Line 14: Line 14:
     <default value="0"/>
     <default value="0"/>
     <test  logic="AND" value="1">
     <test  logic="AND" value="1">
       /sim/model/pushback/linked == 1
       /sim/model/pushback/position-norm == 1
      fcs/cutoff-switch == 0
       /gear/gear/wow == 1
       /gear/gear[0]/compression-norm gt 0.15
     </test>
     </test>
   </switch>
   </switch>
Line 40: Line 39:


   <system file="pushback"/>
   <system file="pushback"/>
And at the end of the FDM, the following is needed to attach the forces of the pushback to the aircraft:
<external_reactions>
  <force name="pushback" frame="BODY">
  <location unit="IN">
    <x>  -139 </x>
    <y>    0.0 </y>
    <z>  -71.0 </z>
  </location>
  <direction>
    <x>1</x>
    <y>0</y>
    <z>0</z>
  </direction>
  </force>
</external_reactions>


===-set.xml===
===-set.xml===
Line 48: Line 66:
   <magnitude>0</magnitude>
   <magnitude>0</magnitude>
   <linked>0</linked>
   <linked>0</linked>
  <position-norm>0</position-norm>
   </pushback>
   </pushback>
  </model>
  </model>
Below the </sim> tag we add our keyboard bindings:
<keyboard>
  <key n="43">
  <name>+</name>
  <desc>Pushback Magnitude increase</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
    <command>property-adjust</command>
    <property>/sim/model/pushback/magnitude</property>
    <max type="double">40000</max>
    <step type="double">20000</step>
  </binding>
  </key>
  <key n="45">
  <name>-</name>
  <desc>Pushback Magnitude decrease</desc>
  <repeatable type="bool">true</repeatable>
  <binding>
    <command>property-adjust</command>
    <property>/sim/model/pushback/magnitude</property>
    <min type="double">-40000</min>
    <step type="double">-20000</step>
  </binding>
  </key>
  <key n="109">
  <name>m</name>
  <desc>Pushback Linked</desc>
  <binding>
    <command>property-toggle</command>
    <property>/sim/model/pushback/linked</property>
  </binding>
  <binding>
    <command>property-assign</command>
    <property>/sim/model/pushback/magnitude</property>
    <value type="double">0</value>
  </binding>
  </key>
</keyboard>


===Models/ .xml===
===Models/ .xml===
In your planes model file, we add a reference to one of the generic pushback models, or a custom made, shipped with your plane.
In your planes model file, we add a reference to one of the generic pushback models, or a custom made truck, shipped with your plane. Edit the offsets to fit your plane. The nosegear of the aircraft should be between the rear gear of the pushback, when it is connected.


  <model>
  <model>

Navigation menu