<?xml version="1.0"?>


<system name="">
    
    <channel name="Electric Master">
        <summer name="Electric Master Switch">
            <input>/controls/electric/master-switch</input>
            <clipto>
                <min>0.0000</min>
                <max>1.0000</max>
            </clipto>
        </summer>
        
        <switch name="Master Switch">
            <default value="0"/>
            <test  logic="OR" value="1">
                /controls/engines/engine[0]/magnetos gt 0
                /controls/engines/engine[1]/magnetos gt 0
            </test>
            <output>/controls/electric/master-switch</output>
        </switch>
        
        
        <switch name="Battery Switch">
            <default value="0"/>
            <test  logic="AND" value="1">
                /controls/electric/master-switch == 1
            </test>
            <output>/controls/electric/battery-switch</output>
        </switch>
        
        <switch name="External Power">
            <default value="0"/>
            <test  logic="AND" value="1">
                /controls/electric/master-switch == 1
            </test>
            <output>/controls/electric/external-power</output>
        </switch>
        
        <switch name="Engine0 Master Bat">
            <default value="0"/>
            <test  logic="AND" value="1">
                /controls/electric/master-switch == 1
            </test>
            <output>/controls/engines/engine[0]/master-bat</output>
        </switch>
        
        <switch name="Engine1 Master Bat">
            <default value="0"/>
            <test  logic="AND" value="1">
                /controls/electric/master-switch == 1
            </test>
            <output>/controls/engines/engine[1]/master-bat</output>
        </switch>
        
        
        
        <switch name="Master Avionics">
            <default value="0"/>
            <test  logic="AND" value="1">
                /controls/electric/master-switch == 1
            </test>
            <output>/controls/switches/master-avionics</output>
        </switch>
        
        <switch name="Instruments Factor">
            <default value="0"/>
            <test  logic="AND" value="1">
                /controls/electric/master-switch == 1
                /systems/electrical/outputs/instrument-lights gt 24
            </test>
        </switch>
        
        <pure_gain name="Instruments Lighting">
            <input>fcs/instruments-factor</input>
            <gain>fcs/lighting-instruments-norm</gain>
            <output>/controls/lighting/instruments-norm</output>
        </pure_gain>
        
    </channel>

</system>
