Howto:Implement pushback: Difference between revisions

Jump to navigation Jump to search
update
mNo edit summary
(update)
Line 6: Line 6:
===Systems/pushback.xml===
===Systems/pushback.xml===
Create the following directory, if not present:
Create the following directory, if not present:
* <tt>$FG_ROOT/Aircraft/.../Systems</tt>
* <tt>[[$FG_ROOT]]/Aircraft/.../Systems</tt>


  <system name="pushback">
  <system name="pushback">
Line 31: Line 31:


===.xml===
===.xml===
In the FDM file we have to add the pushback engine.
In the FDM file we have to add the pushback engine. You add it like every other engine, with the exception that the location should be somewhere near the nose wheel of the aircraft (where the pushback truck is connected).


  <engine file="pushback">
  <engine file="pushback">
Line 40: Line 40:
   <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:
And at the end of the FDM, the following is needed to attach the forces of the pushback to the aircraft. The location should be somewhere near the nose wheel of the aircraft (where the pushback truck is connected).


  <external_reactions>
  <external_reactions>
Line 60: Line 60:


===-set.xml===
===-set.xml===
Between the <model> tags in the -set.xml file we set two properties to false (0).
Between the <model> tags in the -set.xml file we set three properties to false (0). Note: if the model tags are already there, you do no need to add them again. Just place the stuff between them. If you want the truck to be connected on startup, set linked and position-norm to 1.


  <model>
  <model>
   <pushback>
   <pushback>
   <magnitude>0</magnitude>
   <magnitude>0</magnitude>
Line 68: Line 69:
   <position-norm>0</position-norm>
   <position-norm>0</position-norm>
   </pushback>
   </pushback>
  </model>
  </model>
Then below the </sim> tag, we add our [[Menubar|menu]] dialog. A generic one will be available as <tt>$FG_ROOT/gui/Dialogs/pushback.xml</tt>. Add the following lines to include it in the Equipment menu of the aircraft. Note: if the menubar and default tags are already there, you do no need to add them again. Just place the stuff between them.
<menubar>
  <default>
   
  <menu n="5">
    <item>
    <label>Pushback</label>
    <name>pushback</name>
    <binding>
      <command>dialog-show</command>
      <dialog-name>pushback</dialog-name>
    </binding>
    </item>
  </menu>
  </default>
</menubar>


===Models/ .xml===
===Models/ .xml===

Navigation menu