Recommended Posts

Hi, flying in ice condtions I connect the pitot heats in the overhead panel but I,m still losing my speed indication. I don,t know if its not working or I,m doing something wrong. Any ideas? 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Shift-H doesn't help as it correctly toggles the engine anti-ice ON and OFF.

H (pitot heat) would be the correct key but unfortunately for some unknown reason it doesn't work either.

Most frustrating! 

Share this post


Link to post
Share on other sites

I believe they are working on another SP release, might want to shoot them a support ticket before they release it!

 

Cheers

Martin

Share this post


Link to post
Share on other sites

Here is the definitive fix for the pitot heat.

Carenado programmed the wrong variable in the Gauge_UPDATE_DIG.xml file in the GAUGE_690B.cab folder in your gauges folder.  In the file you will find the following lines:

(L:SWITCH_DO228_L_PILOT_HEAT,number) 0 ==
(L:SWITCH_DO228_R_PILOT_HEAT,number) 0 == and
if{ (A:PITOT HEAT, bool) 0 != if{ (>K:PITOT_HEAT_TOGGLE) }  }
els{ (A:PITOT HEAT, bool) 0 == if{ (>K:PITOT_HEAT_TOGGLE) } }

"(L:SWITCH_DO228_L_PILOT_HEAT,number)" should have been "(L:SWITCH_690B_L_PILOT_HEAT,number)" and "(L:SWITCH_DO228_R_PILOT_HEAT,number)" should have been "(L:SWITCH_690B_R_PILOT_HEAT,number)".

To fix the pitot heat perform the following:

1) Copy the file "Gauge_UPDATE_DIG.xml" to your desktop.

2) Open the file with notepad and replace the above lines with:

(L:SWITCH_690B_L_PILOT_HEAT,number) 0 ==
(L:SWITCH_690B_R_PILOT_HEAT,number) 0 == and
if{ (A:PITOT HEAT, bool) 0 != if{ (>K:PITOT_HEAT_TOGGLE) }  }
els{ (A:PITOT HEAT, bool) 0 == if{ (>K:PITOT_HEAT_TOGGLE) } }

then save the file as "Gauge_UPDATE_DIG_1.xml"

3) Open your panel folder and create a folder entitled "GAUGE_690B"

4) Place the "Gauge_UPDATE_DIG_1.xml" file in the new GAUGE_690B folder.

5)  Open the panel.cfg file and replace the line that says "gauge01=GAUGE_690B!Gauge_UPDATE_DIG,  0,  0, 1,  1" in the [Vcockpit03] window with "gauge01=GAUGE_690B!Gauge_UPDATE_DIG_1,  0,  0, 1,  1"

The pitot heat will now work properly. 

  • Upvote 2

Share this post


Link to post
Share on other sites

Thanks for the fix, looks like Carenado just did a cut and paste from their DO228.

Question, is els correct or should it be else on the last line? 

Cheers

Martin

Share this post


Link to post
Share on other sites

Thanks for this thread. I actually posed about this issue last week in the discrepancy listing. Had another member with the same issue. I'm glad to see the problem is confirmed and there is a way to fix it. Nicely done!

Share this post


Link to post
Share on other sites
On 8/10/2017 at 6:26 PM, whamil77 said:

Here is the definitive fix for the pitot heat.

Carenado programmed the wrong variable in the Gauge_UPDATE_DIG.xml file in the GAUGE_690B.cab folder in your gauges folder.  In the file you will find the following lines:

(L:SWITCH_DO228_L_PILOT_HEAT,number) 0 ==
(L:SWITCH_DO228_R_PILOT_HEAT,number) 0 == and
if{ (A:PITOT HEAT, bool) 0 != if{ (>K:PITOT_HEAT_TOGGLE) }  }
els{ (A:PITOT HEAT, bool) 0 == if{ (>K:PITOT_HEAT_TOGGLE) } }

"(L:SWITCH_DO228_L_PILOT_HEAT,number)" should have been "(L:SWITCH_690B_L_PILOT_HEAT,number)" and "(L:SWITCH_DO228_R_PILOT_HEAT,number)" should have been "(L:SWITCH_690B_R_PILOT_HEAT,number)".

To fix the pitot heat perform the following:

1) Copy the file "Gauge_UPDATE_DIG.xml" to your desktop.

2) Open the file with notepad and replace the above lines with:

(L:SWITCH_690B_L_PILOT_HEAT,number) 0 ==
(L:SWITCH_690B_R_PILOT_HEAT,number) 0 == and
if{ (A:PITOT HEAT, bool) 0 != if{ (>K:PITOT_HEAT_TOGGLE) }  }
els{ (A:PITOT HEAT, bool) 0 == if{ (>K:PITOT_HEAT_TOGGLE) } }

then save the file as "Gauge_UPDATE_DIG_1.xml"

3) Open your panel folder and create a folder entitled "GAUGE_690B"

4) Place the "Gauge_UPDATE_DIG_1.xml" file in the new GAUGE_690B folder.

5)  Open the panel.cfg file and replace the line that says "gauge01=GAUGE_690B!Gauge_UPDATE_DIG,  0,  0, 1,  1" in the [Vcockpit03] window with "gauge01=GAUGE_690B!Gauge_UPDATE_DIG_1,  0,  0, 1,  1"

The pitot heat will now work properly. 

What do you do with the original .xml within the GAUGE_690B.cab folder? Leave it?

Share this post


Link to post
Share on other sites
23 hours ago, udidwht said:

What do you do with the original .xml within the GAUGE_690B.cab folder? Leave it?

Yes, you can leave it.  If you changed the panel.cfg file like I suggest, nothing will look for the original.

On a side note....

It turns out there are other references to the "(L:SWITCH_DO228_L_PILOT_HEAT,number)" and "(L:SWITCH_DO228_R_PILOT_HEAT,number)" vars that I didn't notice the first time.  They all need to be changed. 

Open the new "Gauge_UPDATE_DIG_1.xml" file and replace every instance of "(L:SWITCH_DO228_L_PILOT_HEAT,number)" with "(L:SWITCH_690B_L_PILOT_HEAT,number)" and every instance of "(L:SWITCH_DO228_R_PILOT_HEAT,number)" with "(L:SWITCH_690B_R_PILOT_HEAT,number)".  If you don't the airplane will exhibit strange behavior when turning on the pitot heat such as disconnecting the autopilot, for one.      

Share this post


Link to post
Share on other sites
10 hours ago, whamil77 said:

Yes, you can leave it.  If you changed the panel.cfg file like I suggest, nothing will look for the original.

On a side note....

It turns out there are other references to the "(L:SWITCH_DO228_L_PILOT_HEAT,number)" and "(L:SWITCH_DO228_R_PILOT_HEAT,number)" vars that I didn't notice the first time.  They all need to be changed. 

Open the new "Gauge_UPDATE_DIG_1.xml" file and replace every instance of "(L:SWITCH_DO228_L_PILOT_HEAT,number)" with "(L:SWITCH_690B_L_PILOT_HEAT,number)" and every instance of "(L:SWITCH_DO228_R_PILOT_HEAT,number)" with "(L:SWITCH_690B_R_PILOT_HEAT,number)".  If you don't the airplane will exhibit strange behavior when turning on the pitot heat such as disconnecting the autopilot, for one.      

The following is what my new .xml looks like after the initial line entry changes nothing further as you suggest on your previous post. What I notice are entries also referring to C441 and DO228. The entries I highlighted differ slightly (beginning portion) than the entries you suggest changing (not sure how to change them). Could you look this over? Is it safe to say there should be absolutely no entry reference to C441 or DO228 but rather 690B?

 

<?xml version="1.0" encoding="UTF-8"?>

<SimBase.Document
        Type="AceXML"
        version="1,0"
        id="Gauge_UPDATE_DIG">
    <Descr>AceXML Document</Descr>
    <Filename>Gauge_UPDATE_DIG.xml</Filename>
    <SimGauge.Gauge id="Gauge_UPDATE_DIG" ArtDirectory=".">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Size>245,215</Size>
        <Image id="Gauge_UPDATE_DIG" Name="Gauge_UPDATE_DIGNOP">
            <Transparent>True</Transparent>
        </Image>
        
        <Macro id="RPM1" Name="Rpm1percent">
            <MacroValue>(A:PROP1 RPM,rpm) 1605 / 100 *</MacroValue>
        </Macro>    

        <Macro id="RPM2" Name="Rpm2percent">
            <MacroValue>(A:PROP2 RPM,rpm) 1605 / 100 *</MacroValue>
        </Macro>

        <Macro id="GearDownFULL" Name="GearDownFULL">
            <MacroValue>
            (A:GEAR LEFT POSITION,percent) 100 &lt;
            (A:GEAR RIGHT POSITION,percent) 100 &lt; or    
            (A:GEAR CENTER POSITION,percent) 100 &lt; or
            </MacroValue>
        </Macro>
        

        <Macro id="PressurizationPressureAlt" Name="PRESSURIZATIONPRESSUREALT">
            <MacroValue>
                
                (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) @1 &lt; if{ (&gt;K:PRESSURIZATION_PRESSURE_ALT_INC) }
                
                (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) @1 &gt; if{ (&gt;K:PRESSURIZATION_PRESSURE_ALT_DEC)  }
            </MacroValue>
        </Macro>    
        <Update id="Gauge_CABIN_ALTITUDE">
            <Script>
                    
        (L:Time_Cont_car, number)  2 % s0 l0 0 == (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) abs 100 &gt; and
        (L:TEST_INIT_CABIN,number) 0 == and
        if{
            @PRESSURIZATIONPRESSUREALT( 0 )
        }
        els{
            (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) abs 100 &lt; if{ 10 (>L:TEST_INIT_CABIN,number) }
            
        }
            </Script>
        </Update>             
        

<Update id="Sound System">
<Script>    

<!-- 690B -->
(A:ELECTRICAL MASTER BATTERY,BOOL) (A:CIRCUIT GENERAL PANEL ON, bool) and
    
(A:SIM ON GROUND,bool) 0 ==
(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) 0.1 &lt;
(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) 0.1 &lt; or    
@GearDownFULL and and

(A:RADIO HEIGHT,FEET) 2500 &lt;
(L:ASD_690B_BTN_GEAR_WARN_MUTE,number) 0 == and and

if{    
    1  (&gt;L:BUFFER_P100_GearWarn,  number)
}
els{
    0  (&gt;L:BUFFER_P100_GearWarn,  number)    
}


<!--    ALT ALERT HUNDRES  B1900 -->
<!--    UPODATE A690B             -->
(L:GAUGE_ALT_ALERT_DENTRO,number) 0 ==
if{
    0 (>L:GAUGE_ALT_ALERT_ARM, number)
    0 (>L:GAUGE_ALT_ALERT_DENTRO2,number)    
}

(A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs 1000 &gt;
if{
    2 (>L:GAUGE_ALT_ALERT_ARM, number)
}


(A:SIM ON GROUND,bool) 0 ==
(L:GAUGE_ALT_ALERT_ARM, number) 2 == and
(L:GAUGE_ALT_ALERT_DENTRO,number) 1 == and
if{
    950 1000 (A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs rng 1 == (L:GAUGE_ALT_ALERT_DENTRO2,number) 0 == and
    if{
        1 (>L:BUFFER_ALTITUDE_SELECT, bool)
        1 (>L:GAUGE_ALT_ALERT_DENTRO2,number)  
        1 (>L:GAUGE_ALT_ALERT_LIGHT,bool)
    }


    250 300 (A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs rng 1 == (L:GAUGE_ALT_ALERT_DENTRO2,number) 1 == and
    if{
        0 (>L:GAUGE_ALT_ALERT_LIGHT,bool)
        <!-- 1 (>L:GAUGE_ALT_ALERT_DENTRO,number) -->
        2 (>L:GAUGE_ALT_ALERT_DENTRO2,number)
    }
          

    0 5 (A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs rng 1 == (L:GAUGE_ALT_ALERT_DENTRO2,number) 2 == and
    if{
        1 (>L:BUFFER_ALTITUDE_SELECT,bool)
        0 (>L:GAUGE_ALT_ALERT_DENTRO,number)
        0 (>L:GAUGE_ALT_ALERT_DENTRO2,number)        
    }

}


        
        
</Script>
</Update>     
            

        <Update>
        <Script>
        
(L:ASD_690B_SWITCH_RADIO_1,number) 0 ==
(L:ASD_690B_SWITCH_RADIO_1,number) 0 == and
if{
    (A:AVIONICS MASTER SWITCH,bool) 0 != if{ 0 (&gt;K:AVIONICS_MASTER_SET) }
}         
els{
    (A:AVIONICS MASTER SWITCH,bool) 0 == if{ 1 (&gt;K:AVIONICS_MASTER_SET) }
}        

        
        
        


(L:ASD_690B_SWITCH_LANDING_LIGHT_RIGHT,number) 0 ==
(L:ASD_690B_SWITCH_LANDING_LIGHT_LEFT,number)  0 == and
if{
    (A:LIGHT LANDING,bool) 0 != if{ 1 (&gt;K:LANDING_LIGHTS_TOGGLE) }    
}
els{
    (A:LIGHT LANDING,bool) 0 == if{ 1 (&gt;K:LANDING_LIGHTS_TOGGLE) }        
}            
        
        
<!-- HDG ON -->        
(A:AUTOPILOT HEADING LOCK,bool) (L:ASD_690B_TEST_ANNUN,number) 1 == or  (>L:VIS_690b_HGD_ANNUN_AP,number)
<!-- NAV/LOC ARM -->        
(A:AUTOPILOT NAV1 LOCK,BOOL) (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_VL_ANNUN_AP,number)    
    
(A:AUTOPILOT BACKCOURSE HOLD,BOOL) (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_REV_ANNUN_AP,number)    
<!-- GS -->    
(A:HSI CDI NEEDLE VALID, BOOL) (A:HSI CDI needle, number) abs 50 &gt; and (A:AUTOPILOT APPROACH HOLD,BOOL) and (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_ARM_ANNUN_AP,number)    
(A:HSI CDI NEEDLE VALID, BOOL) (A:HSI CDI needle, number) abs 50 &lt; and (A:AUTOPILOT APPROACH HOLD,BOOL) and (L:ASD_690B_TEST_ANNUN,number) 1 == or  (>L:VIS_690B_CAP_ANNUN_AP,number)
<!-- ALT ARM -->
(A:AUTOPILOT ALTITUDE LOCK,bool) (L:ALT_VS_SEL_ON) 0 == (L:ALT_ARM_SEL_ON) 0 == and and (L:Gauge_TEST_APMODESELECTOR,number) 1 == or (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690b_alt_annun_ap,number)
<!-- TO/GA -->
(L:ASD_BTN_EMB505_TOGA,number) (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_GA_ANNUN_AP,number)    


(L:ASD_A500S_LEVER_LOCK_GEAR,number) 1 ==
if{
    (A:GEAR HANDLE POSITION,percent) (L:GEAR_HANDLE_POSITION_LAST,percent)    !=
    if{
        (L:GEAR_HANDLE_POSITION_LAST,percent)   0 == if{ 0 (>K:GEAR_SET) 0   (>L:GEAR_HANDLE_POSITION_LAST,percent) }
        (L:GEAR_HANDLE_POSITION_LAST,percent) 100 == if{ 1 (>K:GEAR_SET) 100 (>L:GEAR_HANDLE_POSITION_LAST,percent) }
        
    }
}    
els{
    (A:GEAR HANDLE POSITION,percent) (>L:GEAR_HANDLE_POSITION_LAST,percent)    
}        
    
    

(A:GENERAL ENG PROPELLER LEVER POSITION:1,percent) 0 &lt;
if{
    (A:GENERAL ENG1 MIXTURE LEVER POSITION,percent) 0 &gt; if{ (&gt;K:MIXTURE1_LEAN) }    
}
els{
    (A:GENERAL ENG PROPELLER LEVER POSITION:1,percent) near 0 ==
    if{
        (A:GENERAL ENG1 MIXTURE LEVER POSITION,percent) near 40 != if{ 6550 (&gt;K:MIXTURE1_SET) }
    }    
    els{
        (A:GENERAL ENG1 MIXTURE LEVER POSITION,percent) near 100 != if{ (&gt;K:MIXTURE1_RICH) }
    }    
}


(A:GENERAL ENG PROPELLER LEVER POSITION:2,percent) 0 &lt;
if{
    (A:GENERAL ENG2 MIXTURE LEVER POSITION,percent) 0 &gt; if{ (&gt;K:MIXTURE2_LEAN) }    
}
els{
    (A:GENERAL ENG PROPELLER LEVER POSITION:2,percent) near 0 ==
    if{
        (A:GENERAL ENG2 MIXTURE LEVER POSITION,percent) near 40 != if{ 6550 (&gt;K:MIXTURE2_SET) }
    }    
    els{
        (A:GENERAL ENG2 MIXTURE LEVER POSITION,percent) near 100 != if{ (&gt;K:MIXTURE2_RICH) }
    }    
}        

(A:ELECTRICAL MASTER BATTERY,BOOL)  (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:ASD_C441_SWITCH_GYRO_INVERT_METALIC,number) 0 != and
if{
    (L:ASD_C441_SWITCH_GYRO_INVERT_TIMER,number) ++ (&gt;L:ASD_C441_SWITCH_GYRO_INVERT_TIMER,number)
}
els{
    18 -10 * (&gt;L:ASD_C441_SWITCH_GYRO_INVERT_TIMER,number)
}

        
        
<!-- VIBRACION MOTORES -->
<!-- 2 300 (A:PROP RPM:1, rpm) rng 1 == if{ @VibrationEngine( (A:PROP RPM:1, rpm) ) }
2 300 (A:PROP RPM:2, rpm) rng 1 == if{ @VibrationEngine( (A:PROP RPM:2, rpm) ) }
 -->  
 
 <!-- VIBRACION AVION -->
(A:SIM ON GROUND,bool) (A:GPS GROUND SPEED, knots) 35 &gt; and if{  (A:PROP ROTATION ANGLE:1,radians) 15.9155 * 32 /  (>L:VIBRATION_STARTED, number) } els{  0  (>L:VIBRATION_STARTED, number) }        

    
        
 
(L:prop0_anim_DO228,number) (L:STEP_PROP0,number) + 100 % (&gt;L:prop0_anim_DO228,number)  
 
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) near 41 &lt;
(A:PROP MAX RPM PERCENT:1,percent) 24 &lt;
(A:PROP MAX RPM PERCENT:1,percent) 0 &gt; and and
if{
    1 (&gt;L:Time_Cont_car_prop0, number)
}

(L:Time_Cont_car_prop0, number) 0 &gt;
if{
    (L:Time_Cont_car_prop0, number) ++ (&gt;L:Time_Cont_car_prop0, number)
    (L:Time_Cont_car_prop0, number) 0 &gt;
    if{  12 (&gt;L:STEP_PROP0,number)  }

    648 (L:Time_Cont_car_prop0, number) - 54 /    (&gt;L:STEP_PROP0,number)
    
    (L:Time_Cont_car_prop0, number) 648 &gt;
    if{
        0  (&gt;L:STEP_PROP0,number)
        0  (&gt;L:Time_Cont_car_prop0, number)        
    }        
}

(L:prop1_anim_DO228,number) (L:STEP_PROP1,number) + 100 % (&gt;L:prop1_anim_DO228,number)  
 
(A:GENERAL ENG MIXTURE LEVER POSITION:2, percent) near 41 &lt;
(A:PROP MAX RPM PERCENT:2,percent) 24 &lt;
(A:PROP MAX RPM PERCENT:2,percent) 0 &gt; and and
if{
    1 (&gt;L:Time_Cont_car_prop1, number)
}

(L:Time_Cont_car_prop1, number) 0 &gt;
if{
    (L:Time_Cont_car_prop1, number) ++ (&gt;L:Time_Cont_car_prop1, number)
    (L:Time_Cont_car_prop1, number) 0 &gt;
    if{  12 (&gt;L:STEP_PROP1,number)  }

    648 (L:Time_Cont_car_prop1, number) - 54 /    (&gt;L:STEP_PROP1,number)
    
    (L:Time_Cont_car_prop1, number) 648 &gt;
    if{
        0  (&gt;L:STEP_PROP1,number)
        0  (&gt;L:Time_Cont_car_prop1, number)        
    }        
}


 
@Rpm1percent 65 &gt;
if{
    (A:GENERAL ENG STARTER:1,bool) if{ 1 (&gt;K:TOGGLE_STARTER1) }
}

@Rpm2percent 65 &gt;
if{
    (A:GENERAL ENG STARTER:2,bool) if{ 1 (&gt;K:TOGGLE_STARTER2) }
}

        
<!-- ENGINE L ACTIVE START LOCK -->
(A:SIM ON GROUND,bool)
@Rpm1percent 50 &lt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_L,number) 0 == and
if{
    1 (&gt;L:START_LOCK_ACTIVE_L,number)
}

(A:SIM ON GROUND,bool)
@Rpm1percent 50 &gt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_L,number) 1 == and
if{
    0 (&gt;L:START_LOCK_ACTIVE_L,number)
}

(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) 0 &gt;
(L:START_LOCK_ACTIVE_L,number) 1 == and
if{
    1 (>K:THROTTLE1_CUT)
}

<!-- ENGINE R ACTIVE START LOCK -->
(A:SIM ON GROUND,bool)
@Rpm2percent 50 &lt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_R,number) 0 == and
if{
    1 (&gt;L:START_LOCK_ACTIVE_R,number)
}

(A:SIM ON GROUND,bool)
@Rpm2percent 50 &gt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_R,number) 1 == and
if{
    0 (&gt;L:START_LOCK_ACTIVE_R,number)
}

(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) 0 &gt;
(L:START_LOCK_ACTIVE_R,number) 1 == and
if{
    1 (>K:THROTTLE2_CUT)
}    
    
 
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:WARNING LOW HEIGHT,bool) 0 !=
(L:WARNING_LOW_HEIGHT_PUSH,number) 0 == and
(L:ASD_DO228_BTN_LAMP_TEST,number) 0 &gt; or and
if{
    1 (&gt;L:WARNING_LOW_HEIGHT, number)
}
els{
    0 (&gt;L:WARNING_LOW_HEIGHT, number)
}

(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:WARNING LOW HEIGHT,bool) 0 != and !
if{
    0 (&gt;L:WARNING_LOW_HEIGHT_PUSH, number)
}              
              
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:STRUCTURAL DEICE SWITCH, bool) 0 !=
(L:ASD_DO228_BTN_LAMP_TEST,number) 0 &gt; or and
if{
    1 (&gt;L:STRUCTURAL_DEICE_SWITCH, number)
}
els{
    0 (&gt;L:STRUCTURAL_DEICE_SWITCH, number)
}
 
 
 
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:GAUGE_ALT_ALERT_LIGHT, number) 1 ==
(L:ALT_ARM_SEL_ON, number) 1 == (L:CUSTOM_AUTOPILOT_AIRSPEED_HOLD_ALT, number) 1 == or  and
(L:ASD_DO228_BTN_LAMP_TEST,number) 0 &gt; or and
if{
    1 (&gt;L:ASD_GAUGE_ALT_ALERT_LIGHT, number)
}
els{
    0 (&gt;L:ASD_GAUGE_ALT_ALERT_LIGHT, number)
}
 
    
 
 <!--
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 0 &gt;
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 23 &lt; and
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 24 &gt;
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 66 &lt; and or
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 67 &gt;
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 100 &lt; and or
and
if{
    1 (&gt;L:TRAILING_EDGE_FLAPS_PERCENT, number)
}
els{
    0 (&gt;L:TRAILING_EDGE_FLAPS_PERCENT, number)
}
 
     -->

(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:ASD_DO228_BTN_FIRE_EXT_TEST_LH,number) 0 !=
(L:ASD_DO228_BTN_FIRE_EXT_TEST_LH,number) 0 != or
(A:Eng On Fire:1,bool)
(A:Eng On Fire:2,bool) or or and
if{
    1 (&gt;L:BUFFER_PC12_Fire,number)
}
els{
    0 (&gt;L:BUFFER_PC12_Fire,number)
}


 (L:BTN_PRESS_COLD_AND_DARK,number) 0 !=
 if{
    (L:PRESS_COLD_AND_DARK_TIMER,number) ++ (&gt;L:PRESS_COLD_AND_DARK_TIMER,number)
 
    (L:PRESS_COLD_AND_DARK_TIMER,number) 180 &gt;
    if{
        1 (&gt;L:ASD_SWITCH_C2_GEN2_DIR,number)  
        (A:GENERAL ENG GENERATOR SWITCH:2,bool) 0 == if{ (&gt;K:TOGGLE_ALTERNATOR2) }
        (A:GENERAL ENG ANTI ICE POSITION:2,bool) 0 != if{ (&gt;K:ANTI_ICE_TOGGLE_ENG2) }
        (A:GENERAL ENG FUEL PUMP SWITCH:2,bool) 0 == if{ (&gt;K:TOGGLE_ELECT_FUEL_PUMP2) }
    
        (A:TURB ENG IGNITION SWITCH:2,BOOL)     0 == if{ 2 (&gt;K:TURBINE_IGNITION_SWITCH_TOGGLE) }
        (A:GENERAL ENG STARTER:2,bool)          0 == if{ 1 (&gt;K:TOGGLE_STARTER2) }        
        

        (>K:THROTTLE2_CUT)
        (>K:PROP_PITCH2_HI)
        (>K:MIXTURE2_RICH)        
    }
    
    (L:PRESS_COLD_AND_DARK_TIMER,number) 270 &gt;
    if{
        0 (&gt;L:START_LOCK_ACTIVE_R,number)
        0 (&gt;L:START_LOCK_ACTIVE_L,number)
        0 (&gt;L:BTN_PRESS_COLD_AND_DARK,number)        
    }    
 }
 els{
    0 (&gt;L:PRESS_COLD_AND_DARK_TIMER,number)    
 }
 

 
(A:TURB ENG IGNITION SWITCH:1,bool)
(A:GENERAL ENG STARTER:1,bool) and  
(&gt;L:ASD_DO228_BTN_IGNITION_LH,number)  
 
 
(A:TURB ENG IGNITION SWITCH:2,bool)
(A:GENERAL ENG STARTER:2,bool) and  
(&gt;L:ASD_DO228_BTN_IGNITION_RH,number)  
   

        
<!-- Air conditiong -->        
(A:ELECTRICAL MASTER BATTERY,BOOL) (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:ASD_DO228_SWITCH_AIRCOND_2_METALIC,number) 0 &gt; and
if{     1  (&gt;L:ClickSoundCar9,  number) }
els{ 0  (&gt;L:ClickSoundCar9,  number) }         
        
            
        
        
(L:ASD_DO228_SWITCH_ENG_LIMIT_L_METALIC,number) 0 ==
if{        
    <!-- 101.4 max torque 5 min -->        
    (L:ENG1_TORQUE_TIMER,number) ++ (&gt;L:ENG1_TORQUE_TIMER,number)  

    (A:TURB ENG MAX TORQUE PERCENT:1,percent) 101.4 &gt;
    (L:ENG1_TORQUE_TIMER,number) 0 &gt; and
    if{    
        <!-- 5 min 60 * 5 * 18 = 5400 -->
        -5400 (&gt;L:ENG1_TORQUE_TIMER,number)
    }

    (A:TURB ENG MAX TORQUE PERCENT:1,percent) 101.4 &gt;
    (L:ENG1_TORQUE_TIMER,number) 0 == and
    if{    
        (&gt;K:TOGGLE_ENGINE1_FAILURE)
    }

    (A:TURB ENG MAX TORQUE PERCENT:1,percent) 101.4 &lt;=
    if{
        0 (&gt;L:ENG1_TORQUE_TIMER,number)
    }
}    
els{
    0 (&gt;L:ENG1_TORQUE_TIMER,number)
}


(L:ASD_DO228_SWITCH_ENG_LIMIT_R_METALIC,number) 0 ==
if{    
    <!-- 101.4 max torque 5 min -->        
    (L:ENG2_TORQUE_TIMER,number) ++ (&gt;L:ENG2_TORQUE_TIMER,number)  

    (A:TURB ENG MAX TORQUE PERCENT:2,percent) 101.4 &gt;
    (L:ENG2_TORQUE_TIMER,number) 0 &gt; and
    if{    
        <!-- 5 min 60 * 5 * 18 = 5400 -->
        -5400 (&gt;L:ENG2_TORQUE_TIMER,number)
    }

    (A:TURB ENG MAX TORQUE PERCENT:2,percent) 101.4 &gt;
    (L:ENG2_TORQUE_TIMER,number) 0 == and
    if{    
        (&gt;K:TOGGLE_ENGINE2_FAILURE)
    }

    (A:TURB ENG MAX TORQUE PERCENT:2,percent) 101.4 &lt;=
    if{
        0 (&gt;L:ENG2_TORQUE_TIMER,number)
    }
}
els{
    0 (&gt;L:ENG1_TORQUE_TIMER,number)
}

     
(A:ELECTRICAL MASTER BATTERY, bool) 0 &gt;
if{    
15 (&gt;L:PROP_DEICER_AMPS,number)        
}
els{
0 (&gt;L:PROP_DEICER_AMPS,number)    
}        

        
(L:SWITCH_690B_L_PILOT_HEAT,number) 0 ==
(L:SWITCH_690B_R_PILOT_HEAT,number) 0 == and
if{ (A:PITOT HEAT, bool) 0 != if{ (>K:PITOT_HEAT_TOGGLE) }  }
els{ (A:PITOT HEAT, bool) 0 == if{ (>K:PITOT_HEAT_TOGGLE) } }         
        

(A:GPS DRIVES NAV1, bool) 0 !=
(A:AUTOPILOT NAV1 LOCK,bool) 0 != and (&gt;L:ASD_DO228_LABEL_NAV_OMEGA,number)        

(A:GPS IS ACTIVE WAY POINT, bool) (&gt;L:ASD_DO228_LABEL_MSG_WPT,number)

<!-- (L:ASD_DO228_LABEL_DR_BAT,number) -->

(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) 0.33 &lt;
(&gt;L:ASD_DO228_BTN_BETA_LH_ON,number)

(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) 0.33 &lt;
(&gt;L:ASD_DO228_BTN_BETA_RH_ON,number)


(A:TURB ENG IGNITION SWITCH:1,BOOL) (&gt;L:ASD_DO228_BTN_IGNITION_RH_ON,number)        
(A:TURB ENG IGNITION SWITCH:2,BOOL) (&gt;L:ASD_DO228_BTN_IGNITION_LH_ON,number)        

    
(L:ASD_DIG_C2_FUEL_CONSUMED,number) (A:FUEL TOTAL QUANTITY, gallons) - (A:FUEL WEIGHT PER GALLON, pounds) * (&gt;L:C2_FUEL_CONSUMED_D1000,number)     

    

 
(A:AIRSPEED SELECT INDICATED OR TRUE, knots) 60 &gt; (L:Ventana_1,number) 0 &gt; and if{  1 (&gt;L:ClickSoundCar12,number) }
                                                                                       els{ (L:CLICKSOUNDCAR12_TIMER) 1.5 +  (P:local time, seconds)  &gt;
                                                                                             if{    }
                                                                                             els{ 0 (&gt;L:ClickSoundCar12,number)   }
                                                                                       }
(A:AIRSPEED SELECT INDICATED OR TRUE, knots) 40 &gt;  (A:EXIT OPEN:0, percent) 10 &gt; and if{  1 (&gt;L:ClickSoundCar13,   number) }
                                                                                       els{ (L:CLICKSOUNDCAR13_TIMER) 1.5 +  (P:local time, seconds)  &gt;
                                                                                             if{    }
                                                                                             els{ 0 (&gt;L:ClickSoundCar13,   number)   }
                                                                                       }
(L:ASD_SWITCH_ELT,number) 1 == (A:COM1 ACTIVE FREQUENCY, MHz) 121.5 == (A:COM TRANSMIT:1, bool) and (A:COM2 ACTIVE FREQUENCY, MHz) 121.5 == (A:COM TRANSMIT:2, bool) and or and
                                                                        if{  1 (&gt;L:ClickSoundCar4,   number) }
                                                                        els{    0 (&gt;L:ClickSoundCar4,   number) }
                                                                                       
        

<!--  SW_TRANS_LIGHT  CHANGE -->
(L:SW_TRANS_POS, number) 4 ==
if{
    1 (&gt;L:SW_TRANS_LIGHT, number)
}
els{
    (L:SW_TRANS_POS, number) 2 == (L:SW_TRANS_POS, number) 3 == or (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; and
    if{
        (L:Time_Cont_car, number)  36 % s0  0 18 l0 rng 1 ==
        if{
            1 (&gt;L:SW_TRANS_LIGHT, number)
        }
        els{
            0 (&gt;L:SW_TRANS_LIGHT, number)
        }
    }
    els{
        0 (&gt;L:SW_TRANS_LIGHT, number)
    }
}

(A:LIGHT BEACON,bool) 0 ==
if{ 0 (&gt;L:Time_Cont_car_beacon, number) }
els{
(L:Time_Cont_car_beacon, number) 72 &lt;
if{ (L:Time_Cont_car_beacon, number) ++ (&gt;L:Time_Cont_car_beacon, number) }
els{  0 (&gt;L:Time_Cont_car_beacon, number) }
}                            

(L:Time_Cont_car_PC12, number) ++ (&gt;L:Time_Cont_car_PC12, number)

(L:Time_Cont_car, number) ++ (&gt;L:Time_Cont_car, number)

(L:Time_Cont_car, number)  36 % s0  l0  0 == l0  3 == l0  6 == or or if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_STROBE_CAR_L_ON, number) } } els{ 0 (&gt;L:VIS_STROBE_CAR_L_ON, number) }
(L:Time_Cont_car, number)  36 % s0  l0  8 == l0 11 == l0 14 == or or if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_STROBE_CAR_R_ON, number) } } els{ 0 (&gt;L:VIS_STROBE_CAR_R_ON, number) }

(L:Time_Cont_car, number)      27 % s0  l0  0 ==  if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_BEACON_CAR,number) }  } els{ 0 (&gt;L:VIS_BEACON_CAR,number) }
(L:Time_Cont_car, number) 14 + 27 % s0  l0  0 ==  if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_BEACON_CAR2,number) }  } els{ 0 (&gt;L:VIS_BEACON_CAR2,number) }


(A:ELECTRICAL MASTER BATTERY,BOOL) (A:CIRCUIT GENERAL PANEL ON, bool) and
if{

    (L:ASD_690B_SWITCH_WIPER_L, number) 1 ==
    if{
        (L:ASD_690B_SWITCH_RADIO_WIPER_SPEED,number) 0 ==
        if{
                1 (&gt;L:BUFFER_WIPERSLOWL,number)
                0 (&gt;L:BUFFER_WIPERHIL,number)
        }
        els{
                0 (&gt;L:BUFFER_WIPERSLOWL,number)
                1 (&gt;L:BUFFER_WIPERHIL,number)
        }
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) (L:WINDSHIELD_WIPER_INCR_L, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number)
        
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) 100 &gt;
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) 0 &lt; or
        if{
            (L:WINDSHIELD_WIPER_INCR_L, number) /-/ (&gt;L:WINDSHIELD_WIPER_INCR_L, number)
        }    
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) (L:WINDSHIELD_WIPER_INCR_L, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number)
    }
    els{
        0 (&gt;L:BUFFER_WIPERSLOWL,number)
        0 (&gt;L:BUFFER_WIPERHIL,number)
    }


    (L:ASD_690B_SWITCH_WIPER_R, number) 1 ==
    if{
        (L:ASD_690B_SWITCH_RADIO_WIPER_SPEED,number) 0 ==
        if{
                1 (&gt;L:BUFFER_WIPERSLOWR,number)
                0 (&gt;L:BUFFER_WIPERHIR,number)
        }
        els{
                0 (&gt;L:BUFFER_WIPERSLOWR,number)
                1 (&gt;L:BUFFER_WIPERHIR,number)
        }    
    
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) (L:WINDSHIELD_WIPER_INCR_R, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number)
        
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) 100 &gt;
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) 0 &lt; or
        if{
            (L:WINDSHIELD_WIPER_INCR_R, number) /-/ (&gt;L:WINDSHIELD_WIPER_INCR_R, number)
        }
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) (L:WINDSHIELD_WIPER_INCR_R, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number)         
    }
    els{
        0 (&gt;L:BUFFER_WIPERSLOWR,number)
        0 (&gt;L:BUFFER_WIPERHIR,number)    
    }
}
els{
    0 (&gt;L:BUFFER_WIPERSLOWL,number)
    0 (&gt;L:BUFFER_WIPERHIL,number)
    0 (&gt;L:BUFFER_WIPERSLOWR,number)
    0 (&gt;L:BUFFER_WIPERHIR,number)

}

(L:Gauge_UPDATED_A690B_INIT) 0 == if{

0 (&gt;K:AP_HDG_HOLD_OFF)
0 (&gt;K:AP_APR_HOLD_OFF)
0 (&gt;K:AP_NAV1_HOLD_OFF)

0 (&gt;K:AP_ALT_HOLD_OFF)
0 (&gt;K:AP_ATT_HOLD_ON)    

0 (&gt;K:AP_BC_HOLD_OFF)

(A:AUTOPILOT MASTER,BOOL) 0 != if{ (&gt;K:AP_MASTER)     }

 1 (&gt;L:SW_DME_ON,number)
 1 (&gt;L:BTN_ON,bool)


8  (&gt;L:WINDSHIELD_WIPER_INCR_L, number)    
8  (&gt;L:WINDSHIELD_WIPER_INCR_R, number)

1 (>L:ASD_C441_SWITCH_GYRO_INVERT_METALIC,number)

1 (&gt;L:ARMSEAT,number)
1 (&gt;L:ARMSEATCOPILOT,number)


0 (&gt;L:var_helice,number)
0 (&gt;L:var_helice2,number)

(&gt;K:MIXTURE1_RICH)    
(&gt;K:MIXTURE2_RICH)


0 (&gt;L:START_LOOK_ACTIVE_L,number)
0 (&gt;L:START_LOOK_ACTIVE_R,number)
    

(&gt;K:PROP_PITCH_HI)
(&gt;K:PROP_PITCH_HI)
    
    
(A:GENERAL ENG FUEL PUMP SWITCH:1, bool) if{ (>K:TOGGLE_ELECT_FUEL_PUMP1) }
(A:GENERAL ENG FUEL PUMP SWITCH:2, bool) if{ (>K:TOGGLE_ELECT_FUEL_PUMP2) }
    
58 (&gt;L:ENG_HYDRAULIC_PRESSURE,number)        
        


(A:LIGHT LOGO,bool)   if{ (>K:TOGGLE_LOGO_LIGHTS) }
(A:LIGHT WING,bool)   if{ (>K:TOGGLE_WING_LIGHTS) }      


(A:STRUCTURAL DEICE SWITCH,bool) 0 !=
if{
}


(A:PITOT HEAT, bool) 0 !=
if{
    1 (&gt;L:SWITCH_DO228_L_PILOT_HEAT,number)
    1 (&gt;L:SWITCH_DO228_R_PILOT_HEAT,number)

}

(A:LIGHT LANDING,bool)      if{ (&gt;K:LANDING_LIGHTS_TOGGLE) }
(A:LIGHT TAXI,bool)         if{ (&gt;K:TOGGLE_TAXI_LIGHTS) }

58 (&gt;L:ENG_HYDRAULIC_PRESSURE,number)


(A:FUEL TANK SELECTOR:1, enum)  6 != if{  6  (>K:FUEL_SELECTOR_SET) }
(A:FUEL TANK SELECTOR:2, enum)  6 != if{  6  (>K:FUEL_SELECTOR_2_SET) }


102  (&gt;L:ASD_NEEDLE_C2_ASI_BUG,number)
102  (&gt;L:ASD_NEEDLE_C2_ASI_BUG_COP,number)  

(A:FUEL TOTAL QUANTITY, gallons)  (&gt;L:ASD_DIG_C2_FUEL_CONSUMED,number)

(A:STRUCTURAL DEICE SWITCH,BOOL)   if{ 1 (&gt;L:ASD_SWITCH_C2_SURFACE,number) }

(A:ENG ANTI ICE:1,bool) if{ 1 (&gt;L:ASD_SWITCH_C2_ANTIICE_L,number) }
(A:ENG ANTI ICE:2,bool) if{ 1 (&gt;L:ASD_SWITCH_C2_ANTIICE_R,number) }


(A:GENERAL ENG FUEL VALVE:1,bool) if{ 1 (&gt;L:TOGGLE_FUEL_VALVE_ENG1) }
(A:GENERAL ENG FUEL VALVE:2,bool) if{ 1 (&gt;L:TOGGLE_FUEL_VALVE_ENG2) }

(>K:MIXTURE1_RICH)
(>K:MIXTURE2_RICH)


1 (&gt;L:Sunvisor2,number)
1 (&gt;L:Sunvisor1,number)

(A:AUTOPILOT MASTER,bool) 0 == if{    1 (&gt;L:ASD_BTN_C2_AUTOPILOT_OFF,number) }


(A:ELECTRICAL MASTER BATTERY,bool) if{ 1 (&gt;L:ASD_SWITCH_C2_BATT_POWER,number) }

(A:COM TRANSMIT:1,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_COM1,number)    
(A:COM TRANSMIT:2,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_COM2,number)    
(A:ADF SOUND,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_ADF1,number)    
(A:NAV SOUND:1,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_NAV1,number)
(A:NAV SOUND:2,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_NAV2,number)
(A:DME SOUND,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_DME1,number)
(A:MARKER SOUND,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_MKE1,number)


10050 (>K:PANEL_ID_OPEN)

(A:general eng elapsed time:1, hours)  0.1 &gt; if{ 10050 (>K:PANEL_ID_CLOSE) }

0 (&gt;L:VIS_STROBE_CAR_L_ON,   number)
0 (&gt;L:VIS_STROBE_CAR_R_ON,   number)
0 (&gt;L:Time_Cont_car, number)

(A:GENERAL ENG FUEL PUMP SWITCH:1, bool) 0 !=
if{
 1 (&gt;L:ASD_DO228_SWITCH_PUMP_1_L_METALIC,number)
}

(A:GENERAL ENG FUEL PUMP SWITCH:2, bool) 0 !=
if{
 1 (&gt;L:ASD_DO228_SWITCH_PUMP_1_R_METALIC,number)
}  

(A:PROP DEICE SWITCH, bool) 0 !=
if{
    1 (&gt;L:SWITCH_DO228_PROPELLER_L,number)
    1 (&gt;L:SWITCH_DO228_PROPELLER_R,number)
}  

(A:PITOT HEAT, bool) 0 !=
if{
    1 (&gt;L:SWITCH_DO228_L_PILOT_HEAT,number)
    1 (&gt;L:SWITCH_DO228_R_PILOT_HEAT,number)

}  

(A:ELECTRICAL MASTER BATTERY,bool) 0 !=
if{
}

(A:PROP SYNC ACTIVE,bool)
if{
    1 (&gt;L:ASD_DO228_KNOB_SYNCHRO_PHASER,number)
}

(A:GENERAL ENG GENERATOR SWITCH:1,bool) 0 !=
if{
    1 (&gt;L:ASD_SWITCH_C2_GEN1_DIR,number)
}

(A:GENERAL ENG GENERATOR SWITCH:2,bool) 0 !=
if{
    1 (&gt;L:ASD_SWITCH_C2_GEN2_DIR,number)
}
    
(A:AVIONICS MASTER SWITCH,bool) 0 !=
if{    
    1 (&gt;L:ASD_690B_SWITCH_RADIO_1,number)
    1 (&gt;L:ASD_690B_SWITCH_RADIO_2,number)
}
 
1 (&gt;L:STATEVIEW,number)

1 (&gt;L:Clock Chronograph Mode,number)
 
1 (&gt;L:AM_KNOB_ONOFF_GPS,number)
1 (&gt;L:AM_KNOB_ONOFF_GPS2,number)

(L:L_Var1_1) 0 == if{ 3 (&gt;L:L_Var1_1) + (P:Local Time, seconds) 1 + (&gt;L:L_Var2_1)
}
els{ 0 (&gt;L:L_Var1_1) }
(L:offon5_1,bool) ! (&gt;L:offon5_1,bool)            
 

(L:L_Var1) 0 == if{ 3 (&gt;L:L_Var1) + (P:Local Time, seconds) 1 + (&gt;L:L_Var2)
}
els{ 0 (&gt;L:L_Var1)
}
(L:offon5,bool) ! (&gt;L:offon5,bool)  
 
1 (&gt;L:L_Var3_1)  
 
 
 
1 (&gt;L:Gauge_UPDATED_A690B_INIT)
}
</Script>
</Update>     


 
<Element id="VIS_CLOCK_DIG">
 <Visibility>1</Visibility>
</Element>
        
<MouseArea id="MouseArea_all">
          
</MouseArea>
                
          
    
 </SimGauge.Gauge>
</SimBase.Document>

Share this post


Link to post
Share on other sites
1 hour ago, udidwht said:

Is it safe to say there should be absolutely no entry reference to C441 or DO228 but rather 690B?

Unfortunately, it is NOT safe to say that.  Carenado often uses variables from other airplanes in new aircraft without changing the variable names.  It allows them to "cut and paste" long lines of xml code.  For the Commander, the only mistake I found was the pitot heat entries.  Wholesale changes to other lines without knowing exactly what is being changed (or without knowing what specific problem you are trying to fix) could result in greatly corrupted code and functions that work incorrectly or not at all.   

Share this post


Link to post
Share on other sites
8 hours ago, whamil77 said:

Unfortunately, it is NOT safe to say that.  Carenado often uses variables from other airplanes in new aircraft without changing the variable names.  It allows them to "cut and paste" long lines of xml code.  For the Commander, the only mistake I found was the pitot heat entries.  Wholesale changes to other lines without knowing exactly what is being changed (or without knowing what specific problem you are trying to fix) could result in greatly corrupted code and functions that work incorrectly or not at all.   

Are the (2) entries I highlighted the entries that are incorrect? What should they look like given the beginning portion of the entries differ from the initial one you suggested correcting? Much appreciated.

Share this post


Link to post
Share on other sites
3 hours ago, udidwht said:

Are the (2) entries I highlighted the entries that are incorrect? What should they look like given the beginning portion of the entries differ from the initial one you suggested correcting? Much appreciated.

Here is the file in its entirety with corrections.  I have highlighted the changed lines. There are a total of 3 pairs of incorrect entries.   

<?xml version="1.0" encoding="UTF-8"?>

<SimBase.Document
        Type="AceXML"
        version="1,0"
        id="Gauge_UPDATE_DIG">
    <Descr>AceXML Document</Descr>
    <Filename>Gauge_UPDATE_DIG.xml</Filename>
    <SimGauge.Gauge id="Gauge_UPDATE_DIG" ArtDirectory=".">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Size>245,215</Size>
        <Image id="Gauge_UPDATE_DIG" Name="Gauge_UPDATE_DIGNOP">
            <Transparent>True</Transparent>
        </Image>
        
        <Macro id="RPM1" Name="Rpm1percent">
            <MacroValue>(A:PROP1 RPM,rpm) 1605 / 100 *</MacroValue>
        </Macro>    

        <Macro id="RPM2" Name="Rpm2percent">
            <MacroValue>(A:PROP2 RPM,rpm) 1605 / 100 *</MacroValue>
        </Macro>

        <Macro id="GearDownFULL" Name="GearDownFULL">
            <MacroValue>
            (A:GEAR LEFT POSITION,percent) 100 &lt;
            (A:GEAR RIGHT POSITION,percent) 100 &lt; or    
            (A:GEAR CENTER POSITION,percent) 100 &lt; or
            </MacroValue>
        </Macro>
        

        <Macro id="PressurizationPressureAlt" Name="PRESSURIZATIONPRESSUREALT">
            <MacroValue>
                
                (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) @1 &lt; if{ (&gt;K:PRESSURIZATION_PRESSURE_ALT_INC) }
                
                (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) @1 &gt; if{ (&gt;K:PRESSURIZATION_PRESSURE_ALT_DEC)  }
            </MacroValue>
        </Macro>    
        <Update id="Gauge_CABIN_ALTITUDE">
            <Script>
                    
        (L:Time_Cont_car, number)  2 % s0 l0 0 == (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) abs 100 &gt; and
        (L:TEST_INIT_CABIN,number) 0 == and
        if{
            @PRESSURIZATIONPRESSUREALT( 0 )
        }
        els{
            (A:PRESSURIZATION CABIN ALTITUDE GOAL,feet) abs 100 &lt; if{ 10 (>L:TEST_INIT_CABIN,number) }
            
        }
            </Script>
        </Update>             
        

<Update id="Sound System">
<Script>    

<!-- 690B -->
(A:ELECTRICAL MASTER BATTERY,BOOL) (A:CIRCUIT GENERAL PANEL ON, bool) and
    
(A:SIM ON GROUND,bool) 0 ==
(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) 0.1 &lt;
(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) 0.1 &lt; or    
@GearDownFULL and and

(A:RADIO HEIGHT,FEET) 2500 &lt;
(L:ASD_690B_BTN_GEAR_WARN_MUTE,number) 0 == and and

if{    
    1  (&gt;L:BUFFER_P100_GearWarn,  number)
}
els{
    0  (&gt;L:BUFFER_P100_GearWarn,  number)    
}


<!--    ALT ALERT HUNDRES  B1900 -->
<!--    UPODATE A690B             -->
(L:GAUGE_ALT_ALERT_DENTRO,number) 0 ==
if{
    0 (>L:GAUGE_ALT_ALERT_ARM, number)
    0 (>L:GAUGE_ALT_ALERT_DENTRO2,number)    
}

(A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs 1000 &gt;
if{
    2 (>L:GAUGE_ALT_ALERT_ARM, number)
}


(A:SIM ON GROUND,bool) 0 ==
(L:GAUGE_ALT_ALERT_ARM, number) 2 == and
(L:GAUGE_ALT_ALERT_DENTRO,number) 1 == and
if{
    950 1000 (A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs rng 1 == (L:GAUGE_ALT_ALERT_DENTRO2,number) 0 == and
    if{
        1 (>L:BUFFER_ALTITUDE_SELECT, bool)
        1 (>L:GAUGE_ALT_ALERT_DENTRO2,number)  
        1 (>L:GAUGE_ALT_ALERT_LIGHT,bool)
    }


    250 300 (A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs rng 1 == (L:GAUGE_ALT_ALERT_DENTRO2,number) 1 == and
    if{
        0 (>L:GAUGE_ALT_ALERT_LIGHT,bool)
        <!-- 1 (>L:GAUGE_ALT_ALERT_DENTRO,number) -->
        2 (>L:GAUGE_ALT_ALERT_DENTRO2,number)
    }
          

    0 5 (A:INDICATED ALTITUDE,FEET) (L:CUSTOM_AP_ALT_VAR_SET_ENGLISH, feet) - abs rng 1 == (L:GAUGE_ALT_ALERT_DENTRO2,number) 2 == and
    if{
        1 (>L:BUFFER_ALTITUDE_SELECT,bool)
        0 (>L:GAUGE_ALT_ALERT_DENTRO,number)
        0 (>L:GAUGE_ALT_ALERT_DENTRO2,number)        
    }

}


        
        
</Script>
</Update>     
            

        <Update>
        <Script>
        
(L:ASD_690B_SWITCH_RADIO_1,number) 0 ==
(L:ASD_690B_SWITCH_RADIO_1,number) 0 == and
if{
    (A:AVIONICS MASTER SWITCH,bool) 0 != if{ 0 (&gt;K:AVIONICS_MASTER_SET) }
}         
els{
    (A:AVIONICS MASTER SWITCH,bool) 0 == if{ 1 (&gt;K:AVIONICS_MASTER_SET) }
}        

        
        
        


(L:ASD_690B_SWITCH_LANDING_LIGHT_RIGHT,number) 0 ==
(L:ASD_690B_SWITCH_LANDING_LIGHT_LEFT,number)  0 == and
if{
    (A:LIGHT LANDING,bool) 0 != if{ 1 (&gt;K:LANDING_LIGHTS_TOGGLE) }    
}
els{
    (A:LIGHT LANDING,bool) 0 == if{ 1 (&gt;K:LANDING_LIGHTS_TOGGLE) }        
}            
        
        
<!-- HDG ON -->        
(A:AUTOPILOT HEADING LOCK,bool) (L:ASD_690B_TEST_ANNUN,number) 1 == or  (>L:VIS_690b_HGD_ANNUN_AP,number)
<!-- NAV/LOC ARM -->        
(A:AUTOPILOT NAV1 LOCK,BOOL) (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_VL_ANNUN_AP,number)    
    
(A:AUTOPILOT BACKCOURSE HOLD,BOOL) (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_REV_ANNUN_AP,number)    
<!-- GS -->    
(A:HSI CDI NEEDLE VALID, BOOL) (A:HSI CDI needle, number) abs 50 &gt; and (A:AUTOPILOT APPROACH HOLD,BOOL) and (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_ARM_ANNUN_AP,number)    
(A:HSI CDI NEEDLE VALID, BOOL) (A:HSI CDI needle, number) abs 50 &lt; and (A:AUTOPILOT APPROACH HOLD,BOOL) and (L:ASD_690B_TEST_ANNUN,number) 1 == or  (>L:VIS_690B_CAP_ANNUN_AP,number)
<!-- ALT ARM -->
(A:AUTOPILOT ALTITUDE LOCK,bool) (L:ALT_VS_SEL_ON) 0 == (L:ALT_ARM_SEL_ON) 0 == and and (L:Gauge_TEST_APMODESELECTOR,number) 1 == or (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690b_alt_annun_ap,number)
<!-- TO/GA -->
(L:ASD_BTN_EMB505_TOGA,number) (L:ASD_690B_TEST_ANNUN,number) 1 == or (>L:VIS_690B_GA_ANNUN_AP,number)    


(L:ASD_A500S_LEVER_LOCK_GEAR,number) 1 ==
if{
    (A:GEAR HANDLE POSITION,percent) (L:GEAR_HANDLE_POSITION_LAST,percent)    !=
    if{
        (L:GEAR_HANDLE_POSITION_LAST,percent)   0 == if{ 0 (>K:GEAR_SET) 0   (>L:GEAR_HANDLE_POSITION_LAST,percent) }
        (L:GEAR_HANDLE_POSITION_LAST,percent) 100 == if{ 1 (>K:GEAR_SET) 100 (>L:GEAR_HANDLE_POSITION_LAST,percent) }
        
    }
}    
els{
    (A:GEAR HANDLE POSITION,percent) (>L:GEAR_HANDLE_POSITION_LAST,percent)    
}        
    
    

(A:GENERAL ENG PROPELLER LEVER POSITION:1,percent) 0 &lt;
if{
    (A:GENERAL ENG1 MIXTURE LEVER POSITION,percent) 0 &gt; if{ (&gt;K:MIXTURE1_LEAN) }    
}
els{
    (A:GENERAL ENG PROPELLER LEVER POSITION:1,percent) near 0 ==
    if{
        (A:GENERAL ENG1 MIXTURE LEVER POSITION,percent) near 40 != if{ 6550 (&gt;K:MIXTURE1_SET) }
    }    
    els{
        (A:GENERAL ENG1 MIXTURE LEVER POSITION,percent) near 100 != if{ (&gt;K:MIXTURE1_RICH) }
    }    
}


(A:GENERAL ENG PROPELLER LEVER POSITION:2,percent) 0 &lt;
if{
    (A:GENERAL ENG2 MIXTURE LEVER POSITION,percent) 0 &gt; if{ (&gt;K:MIXTURE2_LEAN) }    
}
els{
    (A:GENERAL ENG PROPELLER LEVER POSITION:2,percent) near 0 ==
    if{
        (A:GENERAL ENG2 MIXTURE LEVER POSITION,percent) near 40 != if{ 6550 (&gt;K:MIXTURE2_SET) }
    }    
    els{
        (A:GENERAL ENG2 MIXTURE LEVER POSITION,percent) near 100 != if{ (&gt;K:MIXTURE2_RICH) }
    }    
}        

(A:ELECTRICAL MASTER BATTERY,BOOL)  (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:ASD_C441_SWITCH_GYRO_INVERT_METALIC,number) 0 != and
if{
    (L:ASD_C441_SWITCH_GYRO_INVERT_TIMER,number) ++ (&gt;L:ASD_C441_SWITCH_GYRO_INVERT_TIMER,number)
}
els{
    18 -10 * (&gt;L:ASD_C441_SWITCH_GYRO_INVERT_TIMER,number)
}

        
        
<!-- VIBRACION MOTORES -->
<!-- 2 300 (A:PROP RPM:1, rpm) rng 1 == if{ @VibrationEngine( (A:PROP RPM:1, rpm) ) }
2 300 (A:PROP RPM:2, rpm) rng 1 == if{ @VibrationEngine( (A:PROP RPM:2, rpm) ) }
 -->  
 
 <!-- VIBRACION AVION -->
(A:SIM ON GROUND,bool) (A:GPS GROUND SPEED, knots) 35 &gt; and if{  (A:PROP ROTATION ANGLE:1,radians) 15.9155 * 32 /  (>L:VIBRATION_STARTED, number) } els{  0  (>L:VIBRATION_STARTED, number) }        

    
        
 
(L:prop0_anim_DO228,number) (L:STEP_PROP0,number) + 100 % (&gt;L:prop0_anim_DO228,number)  
 
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) near 41 &lt;
(A:PROP MAX RPM PERCENT:1,percent) 24 &lt;
(A:PROP MAX RPM PERCENT:1,percent) 0 &gt; and and
if{
    1 (&gt;L:Time_Cont_car_prop0, number)
}

(L:Time_Cont_car_prop0, number) 0 &gt;
if{
    (L:Time_Cont_car_prop0, number) ++ (&gt;L:Time_Cont_car_prop0, number)
    (L:Time_Cont_car_prop0, number) 0 &gt;
    if{  12 (&gt;L:STEP_PROP0,number)  }

    648 (L:Time_Cont_car_prop0, number) - 54 /    (&gt;L:STEP_PROP0,number)
    
    (L:Time_Cont_car_prop0, number) 648 &gt;
    if{
        0  (&gt;L:STEP_PROP0,number)
        0  (&gt;L:Time_Cont_car_prop0, number)        
    }        
}

(L:prop1_anim_DO228,number) (L:STEP_PROP1,number) + 100 % (&gt;L:prop1_anim_DO228,number)  
 
(A:GENERAL ENG MIXTURE LEVER POSITION:2, percent) near 41 &lt;
(A:PROP MAX RPM PERCENT:2,percent) 24 &lt;
(A:PROP MAX RPM PERCENT:2,percent) 0 &gt; and and
if{
    1 (&gt;L:Time_Cont_car_prop1, number)
}

(L:Time_Cont_car_prop1, number) 0 &gt;
if{
    (L:Time_Cont_car_prop1, number) ++ (&gt;L:Time_Cont_car_prop1, number)
    (L:Time_Cont_car_prop1, number) 0 &gt;
    if{  12 (&gt;L:STEP_PROP1,number)  }

    648 (L:Time_Cont_car_prop1, number) - 54 /    (&gt;L:STEP_PROP1,number)
    
    (L:Time_Cont_car_prop1, number) 648 &gt;
    if{
        0  (&gt;L:STEP_PROP1,number)
        0  (&gt;L:Time_Cont_car_prop1, number)        
    }        
}


 
@Rpm1percent 65 &gt;
if{
    (A:GENERAL ENG STARTER:1,bool) if{ 1 (&gt;K:TOGGLE_STARTER1) }
}

@Rpm2percent 65 &gt;
if{
    (A:GENERAL ENG STARTER:2,bool) if{ 1 (&gt;K:TOGGLE_STARTER2) }
}

        
<!-- ENGINE L ACTIVE START LOCK -->
(A:SIM ON GROUND,bool)
@Rpm1percent 50 &lt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_L,number) 0 == and
if{
    1 (&gt;L:START_LOCK_ACTIVE_L,number)
}

(A:SIM ON GROUND,bool)
@Rpm1percent 50 &gt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_L,number) 1 == and
if{
    0 (&gt;L:START_LOCK_ACTIVE_L,number)
}

(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) 0 &gt;
(L:START_LOCK_ACTIVE_L,number) 1 == and
if{
    1 (>K:THROTTLE1_CUT)
}

<!-- ENGINE R ACTIVE START LOCK -->
(A:SIM ON GROUND,bool)
@Rpm2percent 50 &lt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_R,number) 0 == and
if{
    1 (&gt;L:START_LOCK_ACTIVE_R,number)
}

(A:SIM ON GROUND,bool)
@Rpm2percent 50 &gt; and
(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) -0.01 &lt;= and
(L:START_LOCK_ACTIVE_R,number) 1 == and
if{
    0 (&gt;L:START_LOCK_ACTIVE_R,number)
}

(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) 0 &gt;
(L:START_LOCK_ACTIVE_R,number) 1 == and
if{
    1 (>K:THROTTLE2_CUT)
}    
    
 
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:WARNING LOW HEIGHT,bool) 0 !=
(L:WARNING_LOW_HEIGHT_PUSH,number) 0 == and
(L:ASD_DO228_BTN_LAMP_TEST,number) 0 &gt; or and
if{
    1 (&gt;L:WARNING_LOW_HEIGHT, number)
}
els{
    0 (&gt;L:WARNING_LOW_HEIGHT, number)
}

(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:WARNING LOW HEIGHT,bool) 0 != and !
if{
    0 (&gt;L:WARNING_LOW_HEIGHT_PUSH, number)
}              
              
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:STRUCTURAL DEICE SWITCH, bool) 0 !=
(L:ASD_DO228_BTN_LAMP_TEST,number) 0 &gt; or and
if{
    1 (&gt;L:STRUCTURAL_DEICE_SWITCH, number)
}
els{
    0 (&gt;L:STRUCTURAL_DEICE_SWITCH, number)
}
 
 
 
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:GAUGE_ALT_ALERT_LIGHT, number) 1 ==
(L:ALT_ARM_SEL_ON, number) 1 == (L:CUSTOM_AUTOPILOT_AIRSPEED_HOLD_ALT, number) 1 == or  and
(L:ASD_DO228_BTN_LAMP_TEST,number) 0 &gt; or and
if{
    1 (&gt;L:ASD_GAUGE_ALT_ALERT_LIGHT, number)
}
els{
    0 (&gt;L:ASD_GAUGE_ALT_ALERT_LIGHT, number)
}
 
    
 
 <!--
 
(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 0 &gt;
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 23 &lt; and
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 24 &gt;
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 66 &lt; and or
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 67 &gt;
(A:TRAILING EDGE FLAPS RIGHT PERCENT,percent) 100 &lt; and or
and
if{
    1 (&gt;L:TRAILING_EDGE_FLAPS_PERCENT, number)
}
els{
    0 (&gt;L:TRAILING_EDGE_FLAPS_PERCENT, number)
}
 
     -->

(A:ELECTRICAL MASTER BATTERY,bool) (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:ASD_DO228_BTN_FIRE_EXT_TEST_LH,number) 0 !=
(L:ASD_DO228_BTN_FIRE_EXT_TEST_LH,number) 0 != or
(A:Eng On Fire:1,bool)
(A:Eng On Fire:2,bool) or or and
if{
    1 (&gt;L:BUFFER_PC12_Fire,number)
}
els{
    0 (&gt;L:BUFFER_PC12_Fire,number)
}


 (L:BTN_PRESS_COLD_AND_DARK,number) 0 !=
 if{
    (L:PRESS_COLD_AND_DARK_TIMER,number) ++ (&gt;L:PRESS_COLD_AND_DARK_TIMER,number)
 
    (L:PRESS_COLD_AND_DARK_TIMER,number) 180 &gt;
    if{
        1 (&gt;L:ASD_SWITCH_C2_GEN2_DIR,number)  
        (A:GENERAL ENG GENERATOR SWITCH:2,bool) 0 == if{ (&gt;K:TOGGLE_ALTERNATOR2) }
        (A:GENERAL ENG ANTI ICE POSITION:2,bool) 0 != if{ (&gt;K:ANTI_ICE_TOGGLE_ENG2) }
        (A:GENERAL ENG FUEL PUMP SWITCH:2,bool) 0 == if{ (&gt;K:TOGGLE_ELECT_FUEL_PUMP2) }
    
        (A:TURB ENG IGNITION SWITCH:2,BOOL)     0 == if{ 2 (&gt;K:TURBINE_IGNITION_SWITCH_TOGGLE) }
        (A:GENERAL ENG STARTER:2,bool)          0 == if{ 1 (&gt;K:TOGGLE_STARTER2) }        
        

        (>K:THROTTLE2_CUT)
        (>K:PROP_PITCH2_HI)
        (>K:MIXTURE2_RICH)        
    }
    
    (L:PRESS_COLD_AND_DARK_TIMER,number) 270 &gt;
    if{
        0 (&gt;L:START_LOCK_ACTIVE_R,number)
        0 (&gt;L:START_LOCK_ACTIVE_L,number)
        0 (&gt;L:BTN_PRESS_COLD_AND_DARK,number)        
    }    
 }
 els{
    0 (&gt;L:PRESS_COLD_AND_DARK_TIMER,number)    
 }
 

 
(A:TURB ENG IGNITION SWITCH:1,bool)
(A:GENERAL ENG STARTER:1,bool) and  
(&gt;L:ASD_DO228_BTN_IGNITION_LH,number)  
 
 
(A:TURB ENG IGNITION SWITCH:2,bool)
(A:GENERAL ENG STARTER:2,bool) and  
(&gt;L:ASD_DO228_BTN_IGNITION_RH,number)  
   

        
<!-- Air conditiong -->        
(A:ELECTRICAL MASTER BATTERY,BOOL) (A:CIRCUIT GENERAL PANEL ON, bool) and
(L:ASD_DO228_SWITCH_AIRCOND_2_METALIC,number) 0 &gt; and
if{     1  (&gt;L:ClickSoundCar9,  number) }
els{ 0  (&gt;L:ClickSoundCar9,  number) }         
        
            
        
        
(L:ASD_DO228_SWITCH_ENG_LIMIT_L_METALIC,number) 0 ==
if{        
    <!-- 101.4 max torque 5 min -->        
    (L:ENG1_TORQUE_TIMER,number) ++ (&gt;L:ENG1_TORQUE_TIMER,number)  

    (A:TURB ENG MAX TORQUE PERCENT:1,percent) 101.4 &gt;
    (L:ENG1_TORQUE_TIMER,number) 0 &gt; and
    if{    
        <!-- 5 min 60 * 5 * 18 = 5400 -->
        -5400 (&gt;L:ENG1_TORQUE_TIMER,number)
    }

    (A:TURB ENG MAX TORQUE PERCENT:1,percent) 101.4 &gt;
    (L:ENG1_TORQUE_TIMER,number) 0 == and
    if{    
        (&gt;K:TOGGLE_ENGINE1_FAILURE)
    }

    (A:TURB ENG MAX TORQUE PERCENT:1,percent) 101.4 &lt;=
    if{
        0 (&gt;L:ENG1_TORQUE_TIMER,number)
    }
}    
els{
    0 (&gt;L:ENG1_TORQUE_TIMER,number)
}


(L:ASD_DO228_SWITCH_ENG_LIMIT_R_METALIC,number) 0 ==
if{    
    <!-- 101.4 max torque 5 min -->        
    (L:ENG2_TORQUE_TIMER,number) ++ (&gt;L:ENG2_TORQUE_TIMER,number)  

    (A:TURB ENG MAX TORQUE PERCENT:2,percent) 101.4 &gt;
    (L:ENG2_TORQUE_TIMER,number) 0 &gt; and
    if{    
        <!-- 5 min 60 * 5 * 18 = 5400 -->
        -5400 (&gt;L:ENG2_TORQUE_TIMER,number)
    }

    (A:TURB ENG MAX TORQUE PERCENT:2,percent) 101.4 &gt;
    (L:ENG2_TORQUE_TIMER,number) 0 == and
    if{    
        (&gt;K:TOGGLE_ENGINE2_FAILURE)
    }

    (A:TURB ENG MAX TORQUE PERCENT:2,percent) 101.4 &lt;=
    if{
        0 (&gt;L:ENG2_TORQUE_TIMER,number)
    }
}
els{
    0 (&gt;L:ENG1_TORQUE_TIMER,number)
}

     
(A:ELECTRICAL MASTER BATTERY, bool) 0 &gt;
if{    
15 (&gt;L:PROP_DEICER_AMPS,number)        
}
els{
0 (&gt;L:PROP_DEICER_AMPS,number)    
}        

        
(L:SWITCH_690B_L_PILOT_HEAT,number) 0 ==
(L:SWITCH_690B_R_PILOT_HEAT,number) 0 == and

if{
    (A:PITOT HEAT, bool) 0 != if{ (>K:PITOT_HEAT_TOGGLE) }  
}
els{
    (A:PITOT HEAT, bool) 0 == if{ (>K:PITOT_HEAT_TOGGLE) }
}        
        

(A:GPS DRIVES NAV1, bool) 0 !=
(A:AUTOPILOT NAV1 LOCK,bool) 0 != and (&gt;L:ASD_DO228_LABEL_NAV_OMEGA,number)        

(A:GPS IS ACTIVE WAY POINT, bool) (&gt;L:ASD_DO228_LABEL_MSG_WPT,number)

<!-- (L:ASD_DO228_LABEL_DR_BAT,number) -->

(A:GENERAL ENG THROTTLE LEVER POSITION:1,part) 0.33 &lt;
(&gt;L:ASD_DO228_BTN_BETA_LH_ON,number)

(A:GENERAL ENG THROTTLE LEVER POSITION:2,part) 0.33 &lt;
(&gt;L:ASD_DO228_BTN_BETA_RH_ON,number)


(A:TURB ENG IGNITION SWITCH:1,BOOL) (&gt;L:ASD_DO228_BTN_IGNITION_RH_ON,number)        
(A:TURB ENG IGNITION SWITCH:2,BOOL) (&gt;L:ASD_DO228_BTN_IGNITION_LH_ON,number)        

    
(L:ASD_DIG_C2_FUEL_CONSUMED,number) (A:FUEL TOTAL QUANTITY, gallons) - (A:FUEL WEIGHT PER GALLON, pounds) * (&gt;L:C2_FUEL_CONSUMED_D1000,number)     

    

 
(A:AIRSPEED SELECT INDICATED OR TRUE, knots) 60 &gt; (L:Ventana_1,number) 0 &gt; and if{  1 (&gt;L:ClickSoundCar12,number) }
                                                                                       els{ (L:CLICKSOUNDCAR12_TIMER) 1.5 +  (P:local time, seconds)  &gt;
                                                                                             if{    }
                                                                                             els{ 0 (&gt;L:ClickSoundCar12,number)   }
                                                                                       }
(A:AIRSPEED SELECT INDICATED OR TRUE, knots) 40 &gt;  (A:EXIT OPEN:0, percent) 10 &gt; and if{  1 (&gt;L:ClickSoundCar13,   number) }
                                                                                       els{ (L:CLICKSOUNDCAR13_TIMER) 1.5 +  (P:local time, seconds)  &gt;
                                                                                             if{    }
                                                                                             els{ 0 (&gt;L:ClickSoundCar13,   number)   }
                                                                                       }
(L:ASD_SWITCH_ELT,number) 1 == (A:COM1 ACTIVE FREQUENCY, MHz) 121.5 == (A:COM TRANSMIT:1, bool) and (A:COM2 ACTIVE FREQUENCY, MHz) 121.5 == (A:COM TRANSMIT:2, bool) and or and
                                                                        if{  1 (&gt;L:ClickSoundCar4,   number) }
                                                                        els{    0 (&gt;L:ClickSoundCar4,   number) }
                                                                                       
        

<!--  SW_TRANS_LIGHT  CHANGE -->
(L:SW_TRANS_POS, number) 4 ==
if{
    1 (&gt;L:SW_TRANS_LIGHT, number)
}
els{
    (L:SW_TRANS_POS, number) 2 == (L:SW_TRANS_POS, number) 3 == or (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; and
    if{
        (L:Time_Cont_car, number)  36 % s0  0 18 l0 rng 1 ==
        if{
            1 (&gt;L:SW_TRANS_LIGHT, number)
        }
        els{
            0 (&gt;L:SW_TRANS_LIGHT, number)
        }
    }
    els{
        0 (&gt;L:SW_TRANS_LIGHT, number)
    }
}

(A:LIGHT BEACON,bool) 0 ==
if{ 0 (&gt;L:Time_Cont_car_beacon, number) }
els{
(L:Time_Cont_car_beacon, number) 72 &lt;
if{ (L:Time_Cont_car_beacon, number) ++ (&gt;L:Time_Cont_car_beacon, number) }
els{  0 (&gt;L:Time_Cont_car_beacon, number) }
}                            

(L:Time_Cont_car_PC12, number) ++ (&gt;L:Time_Cont_car_PC12, number)

(L:Time_Cont_car, number) ++ (&gt;L:Time_Cont_car, number)

(L:Time_Cont_car, number)  36 % s0  l0  0 == l0  3 == l0  6 == or or if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_STROBE_CAR_L_ON, number) } } els{ 0 (&gt;L:VIS_STROBE_CAR_L_ON, number) }
(L:Time_Cont_car, number)  36 % s0  l0  8 == l0 11 == l0 14 == or or if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_STROBE_CAR_R_ON, number) } } els{ 0 (&gt;L:VIS_STROBE_CAR_R_ON, number) }

(L:Time_Cont_car, number)      27 % s0  l0  0 ==  if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_BEACON_CAR,number) }  } els{ 0 (&gt;L:VIS_BEACON_CAR,number) }
(L:Time_Cont_car, number) 14 + 27 % s0  l0  0 ==  if{ (A:ELECTRICAL MASTER BATTERY, bool) 0 &gt; if{ 1 (&gt;L:VIS_BEACON_CAR2,number) }  } els{ 0 (&gt;L:VIS_BEACON_CAR2,number) }


(A:ELECTRICAL MASTER BATTERY,BOOL) (A:CIRCUIT GENERAL PANEL ON, bool) and
if{

    (L:ASD_690B_SWITCH_WIPER_L, number) 1 ==
    if{
        (L:ASD_690B_SWITCH_RADIO_WIPER_SPEED,number) 0 ==
        if{
                1 (&gt;L:BUFFER_WIPERSLOWL,number)
                0 (&gt;L:BUFFER_WIPERHIL,number)
        }
        els{
                0 (&gt;L:BUFFER_WIPERSLOWL,number)
                1 (&gt;L:BUFFER_WIPERHIL,number)
        }
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) (L:WINDSHIELD_WIPER_INCR_L, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number)
        
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) 100 &gt;
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) 0 &lt; or
        if{
            (L:WINDSHIELD_WIPER_INCR_L, number) /-/ (&gt;L:WINDSHIELD_WIPER_INCR_L, number)
        }    
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number) (L:WINDSHIELD_WIPER_INCR_L, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMEL,number)
    }
    els{
        0 (&gt;L:BUFFER_WIPERSLOWL,number)
        0 (&gt;L:BUFFER_WIPERHIL,number)
    }


    (L:ASD_690B_SWITCH_WIPER_R, number) 1 ==
    if{
        (L:ASD_690B_SWITCH_RADIO_WIPER_SPEED,number) 0 ==
        if{
                1 (&gt;L:BUFFER_WIPERSLOWR,number)
                0 (&gt;L:BUFFER_WIPERHIR,number)
        }
        els{
                0 (&gt;L:BUFFER_WIPERSLOWR,number)
                1 (&gt;L:BUFFER_WIPERHIR,number)
        }    
    
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) (L:WINDSHIELD_WIPER_INCR_R, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number)
        
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) 100 &gt;
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) 0 &lt; or
        if{
            (L:WINDSHIELD_WIPER_INCR_R, number) /-/ (&gt;L:WINDSHIELD_WIPER_INCR_R, number)
        }
        (L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number) (L:WINDSHIELD_WIPER_INCR_R, number) + (&gt;L:A690B_ANIM_WINDSHIELD_WIPER_KEYFRAMER,number)         
    }
    els{
        0 (&gt;L:BUFFER_WIPERSLOWR,number)
        0 (&gt;L:BUFFER_WIPERHIR,number)    
    }
}
els{
    0 (&gt;L:BUFFER_WIPERSLOWL,number)
    0 (&gt;L:BUFFER_WIPERHIL,number)
    0 (&gt;L:BUFFER_WIPERSLOWR,number)
    0 (&gt;L:BUFFER_WIPERHIR,number)

}

(L:Gauge_UPDATED_A690B_INIT) 0 == if{

0 (&gt;K:AP_HDG_HOLD_OFF)
0 (&gt;K:AP_APR_HOLD_OFF)
0 (&gt;K:AP_NAV1_HOLD_OFF)

0 (&gt;K:AP_ALT_HOLD_OFF)
0 (&gt;K:AP_ATT_HOLD_ON)    

0 (&gt;K:AP_BC_HOLD_OFF)

(A:AUTOPILOT MASTER,BOOL) 0 != if{ (&gt;K:AP_MASTER)     }

 1 (&gt;L:SW_DME_ON,number)
 1 (&gt;L:BTN_ON,bool)


8  (&gt;L:WINDSHIELD_WIPER_INCR_L, number)    
8  (&gt;L:WINDSHIELD_WIPER_INCR_R, number)

1 (>L:ASD_C441_SWITCH_GYRO_INVERT_METALIC,number)

1 (&gt;L:ARMSEAT,number)
1 (&gt;L:ARMSEATCOPILOT,number)


0 (&gt;L:var_helice,number)
0 (&gt;L:var_helice2,number)

(&gt;K:MIXTURE1_RICH)    
(&gt;K:MIXTURE2_RICH)


0 (&gt;L:START_LOOK_ACTIVE_L,number)
0 (&gt;L:START_LOOK_ACTIVE_R,number)
    

(&gt;K:PROP_PITCH_HI)
(&gt;K:PROP_PITCH_HI)
    
    
(A:GENERAL ENG FUEL PUMP SWITCH:1, bool) if{ (>K:TOGGLE_ELECT_FUEL_PUMP1) }
(A:GENERAL ENG FUEL PUMP SWITCH:2, bool) if{ (>K:TOGGLE_ELECT_FUEL_PUMP2) }
    
58 (&gt;L:ENG_HYDRAULIC_PRESSURE,number)        
        


(A:LIGHT LOGO,bool)   if{ (>K:TOGGLE_LOGO_LIGHTS) }
(A:LIGHT WING,bool)   if{ (>K:TOGGLE_WING_LIGHTS) }      


(A:STRUCTURAL DEICE SWITCH,bool) 0 !=
if{
}


(A:PITOT HEAT, bool) 0 !=
if{
    1 (&gt;L:SWITCH_690B_L_PILOT_HEAT,number)
    1 (&gt;L:SWITCH_690B_R_PILOT_HEAT,number)

}

(A:LIGHT LANDING,bool)      if{ (&gt;K:LANDING_LIGHTS_TOGGLE) }
(A:LIGHT TAXI,bool)         if{ (&gt;K:TOGGLE_TAXI_LIGHTS) }

58 (&gt;L:ENG_HYDRAULIC_PRESSURE,number)


(A:FUEL TANK SELECTOR:1, enum)  6 != if{  6  (>K:FUEL_SELECTOR_SET) }
(A:FUEL TANK SELECTOR:2, enum)  6 != if{  6  (>K:FUEL_SELECTOR_2_SET) }


102  (&gt;L:ASD_NEEDLE_C2_ASI_BUG,number)
102  (&gt;L:ASD_NEEDLE_C2_ASI_BUG_COP,number)  

(A:FUEL TOTAL QUANTITY, gallons)  (&gt;L:ASD_DIG_C2_FUEL_CONSUMED,number)

(A:STRUCTURAL DEICE SWITCH,BOOL)   if{ 1 (&gt;L:ASD_SWITCH_C2_SURFACE,number) }

(A:ENG ANTI ICE:1,bool) if{ 1 (&gt;L:ASD_SWITCH_C2_ANTIICE_L,number) }
(A:ENG ANTI ICE:2,bool) if{ 1 (&gt;L:ASD_SWITCH_C2_ANTIICE_R,number) }


(A:GENERAL ENG FUEL VALVE:1,bool) if{ 1 (&gt;L:TOGGLE_FUEL_VALVE_ENG1) }
(A:GENERAL ENG FUEL VALVE:2,bool) if{ 1 (&gt;L:TOGGLE_FUEL_VALVE_ENG2) }

(>K:MIXTURE1_RICH)
(>K:MIXTURE2_RICH)


1 (&gt;L:Sunvisor2,number)
1 (&gt;L:Sunvisor1,number)

(A:AUTOPILOT MASTER,bool) 0 == if{    1 (&gt;L:ASD_BTN_C2_AUTOPILOT_OFF,number) }


(A:ELECTRICAL MASTER BATTERY,bool) if{ 1 (&gt;L:ASD_SWITCH_C2_BATT_POWER,number) }

(A:COM TRANSMIT:1,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_COM1,number)    
(A:COM TRANSMIT:2,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_COM2,number)    
(A:ADF SOUND,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_ADF1,number)    
(A:NAV SOUND:1,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_NAV1,number)
(A:NAV SOUND:2,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_NAV2,number)
(A:DME SOUND,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_DME1,number)
(A:MARKER SOUND,bool) (&gt;L:ASD_SWITCH_C2_AUDIO_MKE1,number)


10050 (>K:PANEL_ID_OPEN)

(A:general eng elapsed time:1, hours)  0.1 &gt; if{ 10050 (>K:PANEL_ID_CLOSE) }

0 (&gt;L:VIS_STROBE_CAR_L_ON,   number)
0 (&gt;L:VIS_STROBE_CAR_R_ON,   number)
0 (&gt;L:Time_Cont_car, number)

(A:GENERAL ENG FUEL PUMP SWITCH:1, bool) 0 !=
if{
 1 (&gt;L:ASD_DO228_SWITCH_PUMP_1_L_METALIC,number)
}

(A:GENERAL ENG FUEL PUMP SWITCH:2, bool) 0 !=
if{
 1 (&gt;L:ASD_DO228_SWITCH_PUMP_1_R_METALIC,number)
}  

(A:PROP DEICE SWITCH, bool) 0 !=
if{
    1 (&gt;L:SWITCH_DO228_PROPELLER_L,number)
    1 (&gt;L:SWITCH_DO228_PROPELLER_R,number)
}  

(A:PITOT HEAT, bool) 0 !=
if{
    1 (&gt;L:SWITCH_690B_L_PILOT_HEAT,number)
    1 (&gt;L:SWITCH_690B_R_PILOT_HEAT,number)

}  

(A:ELECTRICAL MASTER BATTERY,bool) 0 !=
if{
}

(A:PROP SYNC ACTIVE,bool)
if{
    1 (&gt;L:ASD_DO228_KNOB_SYNCHRO_PHASER,number)
}

(A:GENERAL ENG GENERATOR SWITCH:1,bool) 0 !=
if{
    1 (&gt;L:ASD_SWITCH_C2_GEN1_DIR,number)
}

(A:GENERAL ENG GENERATOR SWITCH:2,bool) 0 !=
if{
    1 (&gt;L:ASD_SWITCH_C2_GEN2_DIR,number)
}
    
(A:AVIONICS MASTER SWITCH,bool) 0 !=
if{    
    1 (&gt;L:ASD_690B_SWITCH_RADIO_1,number)
    1 (&gt;L:ASD_690B_SWITCH_RADIO_2,number)
}
 
1 (&gt;L:STATEVIEW,number)

1 (&gt;L:Clock Chronograph Mode,number)
 
1 (&gt;L:AM_KNOB_ONOFF_GPS,number)
1 (&gt;L:AM_KNOB_ONOFF_GPS2,number)

(L:L_Var1_1) 0 == if{ 3 (&gt;L:L_Var1_1) + (P:Local Time, seconds) 1 + (&gt;L:L_Var2_1)
}
els{ 0 (&gt;L:L_Var1_1) }
(L:offon5_1,bool) ! (&gt;L:offon5_1,bool)            
 

(L:L_Var1) 0 == if{ 3 (&gt;L:L_Var1) + (P:Local Time, seconds) 1 + (&gt;L:L_Var2)
}
els{ 0 (&gt;L:L_Var1)
}
(L:offon5,bool) ! (&gt;L:offon5,bool)  
 
1 (&gt;L:L_Var3_1)  
 
 
 
1 (&gt;L:Gauge_UPDATED_A690B_INIT)
}
</Script>
</Update>     


 
<Element id="VIS_CLOCK_DIG">
 <Visibility>1</Visibility>
</Element>
        
<MouseArea id="MouseArea_all">
          
</MouseArea>
                
          
    
 </SimGauge.Gauge>
</SimBase.Document>

Share this post


Link to post
Share on other sites

Question - I'm no programmer so I am wondering how Whamil77's revised coding to fix the pitot heat issue is installed?  I found the CAB file in question in P3DV3's GAUGE folder, but when I click to open it it opens with windows explorer (I'm using 7.1), not notepad.  There are colored lines in there and it doesnt seem to let me click on it to insert the revised coding (I can highlight the coding thats there to copy it)  Before I go messing with this, is there a process to it thats a bit more involved than say modifying an aircraft.cfg file?  It's a nice plane, would really love to be flying it but the pitot issue makes it so annoying.  Thanks in advance for any replies. 

Share this post


Link to post
Share on other sites

When you open the CAB file in question with notepad, you get symbology/code that isn't plain text.  The fix as generously posted by Whamil77 is in plain text.  How does one integrate the two? 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now