<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?>
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"
    name="F-14 Engines test">
    <description>F-14 Engines </description>
    <!--
        Author: Richard Harrison (rjh@zaretto.com)
        References: CR-1756 Modelling data; Chatper 12 "Propulsion system" p338
    -->
    <use aircraft="f-14a" initialize="qtg/engs-reset"/>

    <run start="0.0" end="40" dt="0.033333">

        <event name="Initial setup">
            <condition> simulation/sim-time-sec le 0.1 </condition>
            <set name="gear/gear-cmd-norm" value="0"/>
            <set name="gear/gear-pos-norm" value="0"/>
            <set name="fcs/flap-cmd-norm" value="0"/>

            <set name="propulsion/tank[6]/contents-lbs" value="0"/>
            <!-- left wing -->
            <set name="propulsion/tank[7]/contents-lbs" value="0"/>
            <!-- right wing -->

            <set name="propulsion/tank[0]/contents-lbs" value="1220"/>
            <!-- FWD -->
            <set name="propulsion/tank[1]/contents-lbs" value="1320"/>
            <!-- AFT -->
            <set name="propulsion/tank[2]/contents-lbs" value="0"/>
            <!-- left beam -->
            <set name="propulsion/tank[4]/contents-lbs" value="0"/>
            <!-- right beam -->
            <set name="propulsion/tank[3]/contents-lbs" value="0"/>
            <!-- left sump -->
            <set name="propulsion/tank[5]/contents-lbs" value="0"/>
            <!-- right sump -->
            <set name="propulsion/tank[8]/contents-lbs" value="0"/>
            <!-- left external  -->
            <set name="propulsion/tank[9]/contents-lbs" value="0"/>
            <!--  right external -->
            <set name="propulsion/tank[10]/contents-lbs" value="0"/>
            <!-- left feed -->
            <set name="propulsion/tank[11]/contents-lbs" value="0"/>
            <!-- right feed -->
            <set name="fcs/throttle-cmd-norm[0]"  value="0"/>
            <set name="fcs/throttle-cmd-norm[1]"  value="0"/>
            <set name="fcs/yaw-damper-enable" value="0"/>
        </event>
    <event name="Idle Throttle">
      <condition>simulation/sim-time-sec  lt  1.0</condition>
      <set name="fcs/throttle-cmd-norm[0]" value="0"/>
      <set name="fcs/throttle-cmd-norm[1]" value="0"/>
            <notify>
                <property>systems/jt9d/engine[0]/epr-dmd</property>
                <property>systems/jt9d/engine[0]/epr</property>
                <property>systems/jt9d/engine[0]/n1</property>
                <property>systems/jt9d/engine[0]/tt6-thetak1</property>
                <property>systems/jt9d/engine[0]/theta-t2</property>
                <property>systems/jt9d/engine[0]/tt6</property>
                <property>systems/jt9d/engine[0]/egt-r</property>
                <property>systems/jt9d/engine[0]/fn-lb</property>
            </notify>
    </event>

    <event name="Advance Throttle">
      <condition>simulation/sim-time-sec  ge  20.0</condition>
      <set name="fcs/throttle-cmd-norm[0]" action="FG_RAMP" value="0.6" tc="1"/>
      <set name="fcs/throttle-cmd-norm[1]" action="FG_RAMP" value="0.6" tc="1"/>
            <notify>
                <property>systems/jt9d/engine[0]/epr-dmd</property>
                <property>systems/jt9d/engine[0]/epr</property>
                <property>systems/jt9d/engine[0]/n1</property>
                <property>systems/jt9d/engine[0]/tt6-thetak1</property>
                <property>systems/jt9d/engine[0]/theta-t2</property>
                <property>systems/jt9d/engine[0]/tt6</property>
                <property>systems/jt9d/engine[0]/egt-r</property>
                <property>systems/jt9d/engine[0]/fn-lb</property>
            </notify>
    </event>

    <event name="Full  Throttle">
      <condition>simulation/sim-time-sec  ge  40.0</condition>
      <set name="fcs/throttle-cmd-norm[0]" action="FG_RAMP" value="1.0" tc="1.0"/>
      <set name="fcs/throttle-cmd-norm[1]" action="FG_RAMP" value="1.0" tc="1.0"/>
            <notify>
                <property>systems/jt9d/engine[0]/epr-dmd</property>
                <property>systems/jt9d/engine[0]/epr</property>
                <property>systems/jt9d/engine[0]/n1</property>
                <property>systems/jt9d/engine[0]/tt6-thetak1</property>
                <property>systems/jt9d/engine[0]/theta-t2</property>
                <property>systems/jt9d/engine[0]/tt6</property>
                <property>systems/jt9d/engine[0]/egt-r</property>
                <property>systems/jt9d/engine[0]/fn-lb</property>
            </notify>
    </event>


    </run>
</runscript>