<?xml version="1.0"?>
<!--
        Description: Mirage 2000 Avionics
        Author: Richard Harrison (rjh@zaretto.com)
-->

<system name="Avionics">

    <channel name="adc">
        <lag_filter name="systems/adc/instrumented-g">
            <input>accelerations/Nz</input>
            <output>systems/adc/instrumented-g</output>
            <c1>0.99</c1>
        </lag_filter >

    </channel>

    <channel name="fuel">

        <pure_gain name="propulsion/engine[0]/fuel-flow-rate-kgmin">
            <description>Landing gear unit 0 position</description>
            <input>propulsion/engine[0]/fuel-flow-rate-pps</input>
            <gain>27.2155</gain>
        </pure_gain>

        <summer name="propulsion/total-fuel-lbs">
            <input>propulsion/tank[0]/contents-lbs</input>
            <input>propulsion/tank[1]/contents-lbs</input>
            <input>propulsion/tank[2]/contents-lbs</input>
            <input>propulsion/tank[3]/contents-lbs</input>
            <input>propulsion/tank[4]/contents-lbs</input>
            <output>propulsion/total-fuel-l-lbs</output>
        </summer>
        <pure_gain name="propulsion/total-fuel-kg">
            <input>propulsion/total-fuel-lbs</input>
            <gain>0.4545454545454545</gain>
        </pure_gain>
    </channel>
</system>
