735
edits
(YASIM standard state set) |
|||
Line 58: | Line 58: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== | === YASim aircraft === | ||
For YASim Piston Prop aircraft, two properties need to be set to have an engine running on startup: | |||
* <code>/engines/engine[0]/rpm=1000</code> | |||
* <code>/controls/engines/engine[0]/magnetos=3</code> | |||
This ensures the engine is turning sufficiently quickly and the magnetos are switched on. You may also want to ensure you have any fuel taps on. | |||
By default, YASim will attempt to set the gear state (<code>/control/gear/gear-down</code>) depending on whether the aircraft is on the ground or in the air. To over-ride this behaviour and ensure that whatever you set in the overlay file is respected, set <code>/fdm/yasim/respect-external-gear-state=true</code>. | By default, YASim will attempt to set the gear state (<code>/control/gear/gear-down</code>) depending on whether the aircraft is on the ground or in the air. To over-ride this behaviour and ensure that whatever you set in the overlay file is respected, set <code>/fdm/yasim/respect-external-gear-state=true</code>. | ||
So the following skeleton can be used for runway, cruise and approach overlays | |||
<syntaxhighlight lang="xml"> | |||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||
<PropertyList> | |||
<name type="string">Approach</name> | |||
<readable-name type="string">Approach<readable-name> | |||
<description type="string">Approach configuraion</description> | |||
<overlay> | |||
<controls> | |||
<engines> | |||
<engine n="0"> | |||
<magnetos>3</magnetos> | |||
</engine> | |||
</engines> | |||
</controls> | |||
<engines> | |||
<engine n="0"> | |||
<rpm>1000</rpm> | |||
</engine> | |||
</engines> | |||
<fdm> | |||
<yasim> | |||
<respect-external-gear-state type="bool">true</respect-external-gear-state> | |||
</yasim> | |||
</fdm> | |||
</overlay> | |||
</PropertyList> | |||
</syntaxhighlight> | |||
== Background == | == Background == |