Howto:Implement pushback: Difference between revisions

Systems/pushback.xml: simpler and declared required property
m (Properties still need to be set to 0...)
(Systems/pushback.xml: simpler and declared required property)
Line 7: Line 7:
Create the following directory, if not present <tt>[[$FG_ROOT]]/Aircraft/.../Systems</tt> and create a file named pushback.xml with the following content:
Create the following directory, if not present <tt>[[$FG_ROOT]]/Aircraft/.../Systems</tt> and create a file named pushback.xml with the following content:


<?xml version='1.0' encoding='UTF-8' ?>
  <system name="pushback">
  <system name="pushback">
  <property>/sim/model/pushback/magnitude</property>
   <channel name="Pushback">
   <channel name="Pushback">
    <switch name="systems/pushback/force">
  <switch name="systems/pushback/linked">
      <default value="0"/>
    <default value="0"/>
      <test value="/sim/model/pushback/magnitude">
    <test logic="AND" value="1">
        /sim/model/pushback/position-norm gt 0.95
      /sim/model/pushback/position-norm == 1
        /gear/gear/wow == 1
      /gear/gear/wow == 1
        gear/unit[0]/wheel-speed-fps lt 500
    </test>
      </test>
  </switch>
      <output>external_reactions/pushback/magnitude</output>
    </switch>
  <switch name="systems/pushback/force">
    <default value="0"/>
    <test  logic="AND" value="/sim/model/pushback/magnitude">
      systems/pushback/linked == 1
      gear/unit[0]/wheel-speed-fps lt 500
    </test>
    <output>external_reactions/pushback/magnitude</output>
  </switch>
   </channel>
   </channel>
  </system>
  </system>