<?xml version="1.0"?>
<system name="BN-2 Instruments System">
	<channel name="Pitot">
<!--
    Pitot implementation
    taken from from c172p, thanks dany93.
    enhanced by B. Hallinger for c182s
    failure due to pitot icing  by H. Schulz
-->

        <switch name="/systems/pitot/heating">
            <output>/systems/pitot/heating</output>
            <default value="0"/>

            <test logic="AND" value="1">
                /controls/anti-ice/pitot-heat EQ 1
                /systems/electrical/outputs/pitot-heat GT 20
            </test>
        </switch>

        <kinematic name="/systems/pitot/heat-applied-norm">
            <input>/systems/pitot/heating</input>
            <traverse>
                <setting>
                    <position>0</position>
                    <time>0</time>
                </setting>
                <setting>
                    <position>1</position>
                    <time>30</time>
                </setting>
            </traverse>
            <output>/systems/pitot/heat-applied-norm</output>
        </kinematic>

        <switch>
            <default value="1"/>
            <test logic="OR" value="0">
                /systems/pitot/cover EQ 1
				/systems/pitot/icing GT 0.03
            </test>
            <output>/systems/pitot/serviceable</output>
        </switch>

        <switch name="/systems/pitot/salvage-control">
            <output>/systems/pitot/salvage</output>
            <default value="1"/>

            <test logic="OR" value="0">
               /systems/pitot/heat-applied-norm LT 0.3
            </test>
        </switch>

    </channel>
</system>
