• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Autopilot Annunciator Press to Reset help?

Messages
18
Country
puertorico
Im a newbie when it comes to XML right now im working on a 737NG panel. I compile a few gauges edit others etc.... but im trying to work with the Autopilot annunciator.... and how i can make the light test action..... ( I mean the 3 lil windows thats said AP P/RST) well I added one but it didn't work so i decided to do one by myself I manage to make the light to work when ever i turn off the autopilo or the autotrottle orr the F/D but I want to do as real life that you press it and it goes off..... anyone can help?
 
I was using Paul Scarratt.... but i doesn't work
and I found another one dont recall the author but i didn't work eaither..... I just make the light ill show you what I did

<Gauge Name="A/P Annun" Version="1.0">
<Image Name="AP_ANN_OFF.bmp" ImageSizes="36,36"/>
<Element>
<Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>
<Element>
<Select>
<Value>(A:Autopilot master,bool)</Value>
<Case Value="0">
<Image Name="AP_ANN_ON.bmp" Bright="YES" ImageSizes="36,36"/>
</Case>
<Case Value="1">
<Image Name="AP_ANN_OFF.bmp" Bright="NO" ImageSizes="36,36"/>
</Case>
</Select>
</Element>
</Element>
</Gauge>


I just made it light up when the is disengage.... but it always stays on I can't like reset it. when the Autopilot is on the light off, but i want to make it that goes off when is disengage and I click it, but turn when on when I engage and disengage the autopilot again
 
Last edited:
Heres the full one I got, it was on a ultimate 737 panel.(freeware) but when the AP or the autothrottle is d/c it doesn't light up

<Gauge Name="Annunciator Panel" Version="0.0">
<Image Name="annunciator.bmp" ImageSizes="162,44"/>
<Element>
<Position X="6" Y="6"/>
<Select>
<Value>(L:AP Annunswitch 2, bool)</Value>
<Case Value="1">
<Image Name="annun_ap_red.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="6" Y="6"/>
<Select>
<Value>(L:AP_Annun1, bool) (P:absolute time, number) 1 % 0.5 &gt; * </Value>
<Case Value="1">
<Image Name="annun_ap_Yel.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="6" Y="6"/>
<Select>
<Value>(L:AP Annunswitch 1, bool)</Value>
<Case Value="1">
<Image Name="annun_ap_yel.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="50" Y="6"/>
<Select>
<Value>(L:AP Annunswitch 2, bool)</Value>
<Case Value="1">
<Image Name="annun_at_red.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="50" Y="6"/>
<Select>
<Value>(L:AT_Annun1, bool) (P:absolute time, number) 1 % 0.5 &gt; * </Value>
<Case Value="1">
<Image Name="annun_at_yel.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="50" Y="6"/>
<Select>
<Value>(L:AP Annunswitch 1, bool)</Value>
<Case Value="1">
<Image Name="annun_at_yel.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="94" Y="6"/>
<Select>
<Value>(L:AP Annunswitch 2, bool) (L:AP Annunswitch 1, bool) ||</Value>
<Case Value="1">
<Image Name="annun_fm_yel.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="94" Y="6"/>
<Select>
<Value>(L:FD_Annun, bool) (P:absolute time, number) 1 % 0.5 &gt; * </Value>
<Case Value="1">
<Image Name="annun_fm_yel.bmp" Bright="Yes" ImageSizes="32,32,0,0"/>
</Case>
</Select>
</Element>
<Element>
<Position X="135" Y="8"/>
<Select>
<Value>(L:AP Annun, enum) (G:Var1) -</Value>
<Case Value="1">
<Image Name="annun_switch_1.bmp" ImageSizes="27,26"/>
</Case>
<Case Value="0">
<Image Name="annun_switch_off.bmp" ImageSizes="27,26"/>
</Case>
<Case Value="-1">
<Image Name="annun_switch_2.bmp" ImageSizes="27,26"/>
</Case>
</Select>
</Element>
<Mouse>
<Area Left="135" Top="8" Right="162" Bottom="34">
<Tooltip ID="">Annunciator Test Switch</Tooltip>
<Area Bottom="21">
<Cursor Type="UpArrow"/>
<Click>(L:AP Annun, enum) (G:Var1) + d 0 == if{ (G:Var1) -- (&gt;G:Var1) 1 (&gt;L:AP Annunswitch 2, bool) } els{ (L:AP Annun, enum) (G:Var1) + d 1 == if{ (G:Var1) -- (&gt;G:Var1) 0 (&gt;L:AP Annunswitch 1, bool) }</Click>
</Area>
<Area Top="21">
<Cursor Type="DownArrow"/>
<Click>(L:AP Annun, enum) (G:Var1) + d 0 == if{ (G:Var1) ++ (&gt;G:Var1) 1 (&gt;L:AP Annunswitch 1, bool) } els{ (L:AP Annun, enum) (G:Var1) + d -1 == if{ (G:Var1) ++ (&gt;G:Var1) 0 (&gt;L:AP Annunswitch 2, bool) }</Click>
</Area>
</Area>
<Area Left="6" Top="6" Right="38" Bottom="38">
<Tooltip ID="">AP Annunciator Reset</Tooltip>
<Cursor Type="Hand"/>
<Click>0 (&gt;L:AP_Annun1, bool)</Click>
</Area>
<Area Left="50" Top="6" Right="82" Bottom="38">
<Tooltip ID="">AT Annunciator Reset</Tooltip>
<Cursor Type="Hand"/>
<Click>0 (&gt;L:AT_Annun1, bool)</Click>
</Area>
<Area Left="94" Top="6" Right="126" Bottom="38">
<Tooltip ID="">FD Annunciator Reset</Tooltip>
<Cursor Type="Hand"/>
<Click>0 (&gt;L:FD_Annun, bool)</Click>
</Area>
</Mouse>
</Gauge>
 
Hi Rabbitz106

I too am a real amateur at XML coding.

I have created an Annunciator Gauge for my own B737 panel and it works.

I attach the code and a picture of the five .bmps that are mentioned in the coding.

The bottom image is of the annunciator gauge on the panel itself.

There is a test button at the right side of the gauge.

I would be interested to find out if it works for you.

Walter

Code:
<Gauge Name="Annunciators" Version="1.01">
   <Update Frequency="4"/>
   <Image Name="ANNUNCIATORBACKGROUND.bmp" Bright="No"/>
    <Element>
        <Position X="2" Y="2"/>
        <Select>
              <Value>(A:AUTOPILOT MASTER, bool) 0 == (L:AP RESET INDICATOR, bool) 1 == and  (L:ANNUN TEST, bool) 1 == or  (P:absolute time, number) 1.0 % 0.75 &gt; * </Value>
            <Case Value="0"><Image Name="ANNINDOFF.bmp" Bright="No" /></Case>
            <Case Value="1"><Image Name="APRESETINDICATORON.bmp" Bright="Yes" /></Case>
        </Select>
       </Element>
       <Element>
        <Position X="44" Y="2"/>
        <Select>
              <Value>(A:AUTOPILOT THROTTLE ARM, bool) 0 == (L:AT RESET INDICATOR, bool) 1 == and  (L:ANNUN TEST, bool) 1 == or  (P:absolute time, number) 1.0 % 0.65 &gt; * </Value>
            <Case Value="0"><Image Name="ANNINDOFF.bmp" Bright="No" /></Case>
            <Case Value="1"><Image Name="ATRESETINDICATORON.bmp" Bright="Yes" /></Case>
        </Select>
       </Element>
    <Element>
        <Position X="86" Y="2"/>
        <Select>
              <Value>(A:AUTOPILOT MASTER, bool) 1 == (L:FMS RESET INDICATOR, bool) 1 == and  (L:ANNUN TEST, bool) 1 == or  (P:absolute time, number) 1.0 % 0.45 &gt; * </Value>
            <Case Value="0"><Image Name="ANNINDOFF.bmp" Bright="No" /></Case>
            <Case Value="1"><Image Name="FMSRESETINDICATORON.bmp" Bright="Yes" /></Case>
        </Select>
       </Element>

    <Mouse>
        <Area Left="2" Right="41" Top="2" Bottom="38">
            <Cursor Type="Hand"/>
                <Click>0 (&gt;L:AP RESET INDICATOR, bool)
                </Click>
        </Area>
        <Area Left="44" Right="83" Top="2" Bottom="38">
            <Cursor Type="Hand"/>
                <Click>0 (&gt;L:AT RESET INDICATOR, bool)
                </Click>
        </Area>
        <Area Left="86" Right="122" Top="2" Bottom="38">
            <Cursor Type="Hand"/>
                <Click>0 (&gt;L:FMS RESET INDICATOR, bool)
                </Click>
        </Area>
        <Area Left="126" Right="170" Top="1" Bottom="38">
            <Cursor Type="Grab"/>
            <Click Kind="LeftSingle+Leave">
            (M:Event) 'LeftSingle' scmp 0 ==
            if{ 1 (&gt;L:ANNUN TEST,bool)
                1 (&gt;L:AnnunTested,bool) }
            (M:Event) 'Leave' scmp 0 ==
            if{ 0 (&gt;L:ANNUN TEST,bool) }
            </Click>
        </Area>
       </Mouse>
</Gauge>


http://imageshack.com/a/img838/8961/2np2.jpg
2np2.jpg
 
Ok test it out, the light test worked, but when i disengage the Autopilot or the Autothrottle they didn't light up
 
Ah well, obviously the old technology of my 737 Classic doesn't carry well into the 737NG :)

Better luck with the next offering - I will be keeping my eyes on it for ideas as well!
 
Rabbitz106,

in my case, when I disengage the Autopilot, I set the AP RESET INDICATOR to 1. The coding behind my AP Disengage Bar does this.

Similarly, when I disengage the Autothrottle, I set the AT RESET INDICATOR to 1. The coding behind my A/T Switch does this.

On my panel I use the ISG set of gauges, and when you hit VNAV or LNAV it turns on or off the FMS. I use coding behind these buttons to set the FMS RESET INDICATOR to 0 or 1 as required.

So unless these gauges are also programmed likewise in your panel my Annunciator Lights won't work.

Walter
 
Rabbitz106,

you must excuse my very lax and amateurish code, I am sure others could probably achieve the same functionality in lots less code and be neater too.

But I know this works - my B737 is the only aircraft I fly and the Autopilot and Autothrottle play big parts in my flights!

Ignore the lines involving sounds - my cockpit speaks to me as often as possible with Clicks and Verbal Messages. It would be very quiet without them!

The Autopilot Disengage Bar code - if the Autopilot is on then it disengages the Autopilot and sets AP RESET INDICATOR to 1. This lights up the AP light in the Annunciator. (The APLocked thing is just that the bar stays down when pressed and has to be pressed again before the Autopilot can be set on.)

Code:
        <Area Left="754" Top="149" Right="860" Bottom="170">
            <Cursor Type="Hand"/>
            <Click> (A:AUTOPILOT MASTER, bool)
                        if{ 0 (&gt;K:AUTOPILOT_OFF)
                            (L:APLocked,bool) ! (&gt;L:APLocked,bool)
                            1 (&gt;L:AP RESET INDICATOR, bool)
                            1 (&gt;L:DSD_XML_SOUND_83, number) }
                               els{ (L:APLocked,bool) ! (&gt;L:APLocked,bool)
                                    1 (&gt;L:DSD_XML_SOUND_01, number) }

            </Click>
        </Area>


The Autothrottle Switch code - toggles the Autothrottle on or off, then sets the AT RESET INDICATOR to 1 if the Autothrottle is off. This lights up the AT light in the Annunciator.

Code:
        <Area Left="140" Top="46" Right="172" Bottom="78">
            <Cursor Type="Hand"/>
                <Click>
                     1 (&gt;K:AUTO_THROTTLE_ARM)
                     (A:AUTOPILOT THROTTLE ARM, bool) 0 ==
                         if{ 1 (&gt;L:AT RESET INDICATOR, bool)
                             1 (&gt;L:DSD_XML_SOUND_01, number) }
                     els{ 1 (&gt;L:DSD_XML_SOUND_17, number) }
                </Click>
        </Area>

Both lights are set off within the Annunciator coding supplied already.

The FMS code would only pertain if you use the ISG gauges.

I hope this helps...

Walter
 
I tested the Auto-throttle and I made it work, but it doesn't stop blinking when i click it :/ on the Annunciator
 
Rabbitz106,

If you can show us the code you ended up with on both the Autothrottle and the Annunciator I will test it here on my own panel.

Walter
 
Hi Walter here are the other two that ain't working right... Autopilot keep blinking when off idk if it because of the click area..... and the FMS im trying to make it to be the Nav/GPS button.

heres the first code (Autopilot) this is on the AP button no the Annun.

Code:
<Gauge Name="Autopilot Master" Version="1.0">
   <Element>
      <Select>
         <Value>(A:AUTOPILOT MASTER, bool)</Value>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
         </Failures>
         <Case Value="0">
            <Image Name="AP_DSG_Off.bmp" Bright="NO" ImageSizes="117,45,117,45"/>
         </Case>
         <Case Value="1">
            <Image Name="AP_DSG_On.bmp" Bright="NO" ImageSizes="117,45,117,45"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Area>
         <Cursor Type="Hand"/>
         <Click>0 (&gt;K:AUTOPILOT_OFF) 1 (&gt;L:AP RESET INDICATOR, bool)</Click>
      </Area>
   </Mouse>
</Gauge>
 
Ok Auto Throttle and FMC works just fine Im only having trouble with the AP, when disengage it blink ( wish is good) but the it doesn't reset
 
MY BAD FOUND THE PROBLEM NOW IT WORKS GREAT!!!! thank you Walter!! thanks a million, I was getting frustrated with this :D
 
By any chance you know how to make a barometer increase decrease gauge?

I took this one but it didn't work
Code:
<Gauge Name="Baro Adjust" Version="1.0">
      <Image Name="MASKBTN.bmp" ImageSizes="50,50"/>

<Mouse>
      <Help ID="HELPID_GAUGE_ALTIMETER"/>
      <Tooltip ID="TOOLTIPTEXT_ALTIMETER_FEET" MetircID="TOOLTIPTEXT_ALTIMETER_FEET_METERS_SPECIAL"/>
      <Area Left="25" Right="25" Top="25" Bottom="25">
         <Help ID="HELPID_GAUGE_TAS_CALIBRATION"/>
         <Tooltip ID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_INHG" MetircID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_MBAR"/>
         <Area Right="25">
            <Cursor Type="DownArrow"/>
            <Click Event="KOHLSMAN_DEC" Repeat="Yes"/>
         </Area>
         <Area Left="25">
            <Cursor Type="UpArrow"/>
            <Click Event="KOHLSMAN_INC" Repeat="Yes"/>
         </Area>
      </Area>
   </Mouse>
</Gauge>
 
Back
Top