8,567
edits
m (New page: ===Systems/pushback.xml=== {{WIP}} Create the following directory, if not present: * <tt>$FG_ROOT/Aircraft/.../Systems</tt> <system name="mule"> <channel name="Mule"> <switch nam...) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{WIP}} | {{WIP}} | ||
===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=" | <system name="pushback"> | ||
<channel name=" | <channel name="Pushback"> | ||
<switch name="systems/ | <switch name="systems/pushback/linked"> | ||
<default value="0"/> | <default value="0"/> | ||
<test logic="AND" value="1"> | <test logic="AND" value="1"> | ||
/sim/model/ | /sim/model/pushback/linked == 1 | ||
fcs/cutoff-switch == 0 | fcs/cutoff-switch == 0 | ||
/gear/gear[ | /gear/gear[0]/compression-norm gt 0.15 | ||
</test> | </test> | ||
</switch> | </switch> | ||
<switch name="systems/ | <switch name="systems/pushback/force"> | ||
<default value="0"/> | <default value="0"/> | ||
<test logic="AND" value="/sim/model/ | <test logic="AND" value="/sim/model/pushback/magnitude"> | ||
systems/ | systems/pushback/linked == 1 | ||
gear/unit[ | gear/unit[0]/wheel-speed-fps lt 500 | ||
</test> | </test> | ||
<output>external_reactions/ | <output>external_reactions/pushback/magnitude</output> | ||
</switch> | </switch> | ||
</channel> | </channel> | ||
</system> | </system> | ||
===.xml=== | |||
In the FDM file we have to add the pushback engine. | |||
<engine file="pushback"> | |||
... | |||
After the </propulsion> tag we add a reference to the pushback system: | |||
<system file="pushback"/> | |||
===-set.xml=== | |||
Between the <model> tags in the -set.xml file we set two properties to false (0). | |||
<model> | |||
<pushback> | |||
<magnitude>0</magnitude> | |||
<linked>0</linked> | |||
</pushback> | |||
</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> | |||
[[Category:Aircraft enhancement|Implent pushback]] | [[Category:Aircraft enhancement|Implent pushback]] | ||
[[Category:Howto|Implent pushback]] | [[Category:Howto|Implent pushback]] |