Skip to content

Commit

Permalink
Sim: Overlay States now conform to 2018.3 standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiVChr committed Sep 20, 2018
1 parent e48eb7d commit ad3c2e3
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 3 deletions.
4 changes: 3 additions & 1 deletion f16-base.xml
Expand Up @@ -27,7 +27,9 @@
<tag>ifr</tag>
</tags>
<state include="states/running.xml" n="0"/>
<!--<state include="states/ramp.xml" n="1"/>-->
<state include="states/ramp.xml" n="1"/>
<state include="states/cruise.xml" n="2"/>
<state include="states/approach.xml" n="3"/>
<checklists include="gui/checklists.xml"/>
<submodels>
<serviceable type="bool">1</serviceable>
Expand Down
45 changes: 45 additions & 0 deletions states/approach.xml
@@ -0,0 +1,45 @@
<?xml version="1.0"?>

<PropertyList>

<name type="string" n="0">approach</name>

<overlay>
<fdm>
<jsbsim>
<elec>
<switches>
<main-pwr type="int">2</main-pwr>
<epu type="int">1</epu>
</switches>
</elec>
</jsbsim>
</fdm>
<controls>
<engines>
<engine n="0">
<cutoff type="bool">false</cutoff>
<starter type="bool">false</starter>
<throttle type="double">0.5</throttle>
</engine>
</engines>
<gear>
<gear-down type="double">1</gear-down>
</gear>
</controls>
<engines>
<engine n="0">
<running type="bool">true</running>
</engine>
</engines>
<f16>
<engine>
<feed type="bool">true</feed><!-- OFF/NORM prevents starter, cutoff -->
<jet-fuel type="int">0</jet-fuel><!-- starter -1=1 1=2 0=off goes to off at 55% rpm -->
<jsf-start type="bool">true</jsf-start><!-- inverse cutoff -->
<running-state type="bool">true</running-state>
</engine>
</f16>
</overlay>

</PropertyList>
45 changes: 45 additions & 0 deletions states/cruise.xml
@@ -0,0 +1,45 @@
<?xml version="1.0"?>

<PropertyList>

<name type="string" n="0">cruise</name>

<overlay>
<fdm>
<jsbsim>
<elec>
<switches>
<main-pwr type="int">2</main-pwr>
<epu type="int">1</epu>
</switches>
</elec>
</jsbsim>
</fdm>
<controls>
<engines>
<engine n="0">
<cutoff type="bool">false</cutoff>
<starter type="bool">false</starter>
<throttle type="double">0.75</throttle>
</engine>
</engines>
<gear>
<gear-down type="double">0</gear-down>
</gear>
</controls>
<engines>
<engine n="0">
<running type="bool">true</running>
</engine>
</engines>
<f16>
<engine>
<feed type="bool">true</feed><!-- OFF/NORM prevents starter, cutoff -->
<jet-fuel type="int">0</jet-fuel><!-- starter -1=1 1=2 0=off goes to off at 55% rpm -->
<jsf-start type="bool">true</jsf-start><!-- inverse cutoff -->
<running-state type="bool">true</running-state>
</engine>
</f16>
</overlay>

</PropertyList>
2 changes: 1 addition & 1 deletion states/ramp.xml
Expand Up @@ -2,7 +2,7 @@

<PropertyList>

<name type="string" n="0">Aircraft cold and dark. Parking brakes on.</name>
<name type="string" n="0">parked</name>

<overlay>
<fdm>
Expand Down
2 changes: 1 addition & 1 deletion states/running.xml
Expand Up @@ -2,7 +2,7 @@

<PropertyList>

<name type="string" n="0">Engine running, ready for takeoff. Parking brakes on.</name>
<name type="string" n="0">take-off</name>

<overlay>
<fdm>
Expand Down

0 comments on commit ad3c2e3

Please sign in to comment.