<?xml version="1.0"?>


<system name="">
    
    <channel name="Outdoor Lighting">
        
        <switch name="Landing Light">
            <default value="0"/>
            <test logic="AND" value="1">
                /surface-positions/gear-pos-norm  == 1
                /systems/electrical/outputs/landing-light  gt 24
            </test>
        </switch>
        
        <switch name="blinker-sw">
            <default value="/instrumentation/lights/blinker-kinemat-in"/>
            <test logic="AND" value="1">
                /instrumentation/lights/blinker-kinemat-in == 0
                /instrumentation/lights/blinker-kinemat-out == 0
            </test>
            <test logic="AND" value="0">
                /instrumentation/lights/blinker-kinemat-in == 1
                /instrumentation/lights/blinker-kinemat-out == 1
            </test>
            <output>/instrumentation/lights/blinker-kinemat-in</output>
        </switch>
        
        <kinematic name="blinker-norm">
            <input>/instrumentation/lights/blinker-kinemat-in</input>
            <traverse>
                <setting>
                    <position>0</position>
                    <time>0</time>
                </setting>
                <setting>
                    <position>1</position>
                    <time>1</time>
                </setting>
            </traverse>
            <output>/instrumentation/lights/blinker-kinemat-out</output>
        </kinematic>
        
        <switch name="beacon-sw">
            <default value="0"/>
            <test logic="AND" value="1">
                /instrumentation/lights/blinker-kinemat-out > 0.90
                /instrumentation/lights/blinker-kinemat-out lt 0.97
            </test>
            <output>/instrumentation/lights/beacon-on</output>
        </switch>
    </channel>
    
</system>
