• 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.

Blinking Annunciator Panel Lights

Messages
1,084
Country
us-northcarolina
A/P (autopilot) warning light: Illuminated red flashing light warns pilot that the autopilot system is disengaged. This light is extinguished by activating the autopilot.

Below is the code for the autopilot master switch I found without any problem and installed. Next is the code I found here for a blinking light which I modified thank you MijoBerlin. The AP Warning gauge appears in FS Panel Designer but not on the panel when in FSX. I also need it to be conditional as the description above. Once someone can do the code for me for this I can modify it for 50 (no joke) other panel warning and caution lights. Caution lights do not blink, steady amber That may be a lot easier for me to do I hope. I can write XML code for simple switches and/or lights.

Code:
<Gauge Name="APS" Version="1.0">
   <Element>
      <Select>
         <Value>(A:Autopilot master,bool)</Value>
         <Case Value="0">
            <Image Name="APS_off.bmp" ImageSizes="18,18"/>
         </Case>
         <Case Value="1">
            <Image Name="APS_on.bmp" ImageSizes="18,18"/>
         </Case>
      </Select>
   </Element>
   <Mouse>
      <Help ID="HELPID_GAUGE_AUTOPILOT_MASTER"/>
      <Tooltip ID="APS Master Switch"/>
      <Cursor Type="Hand"/>
      <Click Event="AP_MASTER"/>
   </Mouse>
</Gauge>

Code:
Gauge Name="AP_Warning" Version="1.0">

<Element>
<Visible>(P:Absolute time,seconds) 2 % 1 1 * > ! // no funktion --> and (L:ibf_test_r,bool) 50 == </Visible>
 <Position X="434" Y="52"/>
   <Select>
      <Value>(L:ibf_test_r,bool) 1 == if{ (A:Avionics master switch, bool) (A:Electrical master battery, bool) 1 == &amp;&amp; }</Value>
        <Case Value="1">
            <Image Name="AP_Warning_On.bmp"/>
        </Case>
    </Select>
</Element>
</Gauge>

I am learning JUST enough XML code to get me in trouble LOL.
 
The following code might be of some help.

It's a landing gear warning light that flashes as an alert for two different conditions.
(1). To warn after takeoff that gear has not been retracted and airspeed is exceeding gear structural limitations.
(2) . To warn on landing approach that gear has not been lowered , if airspeed is lower than preset and height is lower than a preset condition.

Each of condition (1) and (2) has a slightly different flashing frequency .

Cheers
Karol
HTML:
<Gauge Name="Gear Alert Light" Version="1.0">
//By Karol Chlebowski @ 2010 **
//---Warns when (A) gear not lowered for landing (B) gear not retracted at structural lim. speed---
<Element>
  <Image Name="ALTOK.bmp" ImageSizes="19,19" /> 
  //---LDG gear not lowered, KIAS 160 or less, ALT 500 or less---
  <Element>
  <Visible>(A:Sim On Ground, bool) ! (A:RADIO HEIGHT, feet) 500 &lt; &amp;&amp;</Visible>
- <Element>
- <Select>
  <Value>(A:Gear left position, percent) 95 &lt; (A:Airspeed indicated, knots) 160 &lt; &amp;&amp; </Value> 
- <Case Value="1">
  <Image Name="AIRBR_OUT.bmp" ImageSizes="19,19" /> 
  </Case>
  </Select>
  </Element>
  <Element>
- <Select>
  <Value>(A:Gear left position, percent) 95 &lt; (A:Airspeed indicated, knots) 160 &lt; &amp;&amp; (P:Local time,seconds) 0.3 % 0.10 &lt; * </Value> 
- <Case Value="1">
  <Image Name="AIRBR_OUT_FL.bmp" ImageSizes="19,19" /> 
  </Case>
  </Select>
  </Element>
  </Element>
//---LDG gear not retracted, KIAS 295 or greater---
<Element>
- <Select>
  <Value>(A:Gear left position,percent) 95 &gt; (A:Airspeed indicated, knots) 295 &gt; &amp;&amp;</Value> 
- <Case Value="1">
  <Image Name="AIRBR_OUT.bmp" ImageSizes="19,19" /> 
  </Case>
  </Select>
  </Element>
  <Element>
- <Select>
  <Value>(A:Gear left position,percent) 95 &gt; (A:Airspeed indicated, knots) 295 &gt; &amp;&amp; (P:Local time,seconds) 0.3 % 0.15 &lt; * </Value> 
- <Case Value="1">
  <Image Name="AIRBR_OUT_FL.bmp" ImageSizes="19,19" /> 
  </Case>
  </Select>
  </Element>
  </Element>

   <Mouse>
      <Tooltip>Gear Alert</Tooltip>
      <Cursor Type="Hand"/>
   </Mouse>
</Gauge>
 
Last edited:
Thank you

I have one of these in the "50" so I can use it exactly and I will also read it and decipher what I can use for the other lights AND the AP and AT lights thanks.

Richard
 
On your code, this line:

Code:
<Visible>(P:Absolute time,seconds) 2 % 1 1 * > ! // no funktion --> and (L:ibf_test_r,bool) 50 == </Visible>

is not correct at all - // no funktion --> is not a correct comment and will mess up the gauge. This should be:

<!-- no funktion -->

Second, > 0 would be easier to understand than > ! (if that is even valid?), and if you want to test for a second condition the and needs to be at the end. Something like this might work?

Code:
<Visible>(P:Absolute time,seconds) 2 % 1 1 * > 0 (L:ibf_test_r,bool) 50 == and </Visible><!-- no funktion -->
 
Second, > 0 would be easier to understand than > ! (if that is even valid?), and if you want to test for a second condition the and needs to be at the end. Something like this might work?

Code:
<Visible>(P:Absolute time,seconds) 2 % 1 1 * > 0 (L:ibf_test_r,bool) 50 == and </Visible><!-- no funktion -->

Tom, there is an example in the wiki that shows how this timer works:

http://www.fsdeveloper.com/wiki/index.php?title=XML:_Timer

Tom
 
"Greater than not" just bugs me... :)

That's not how those should be interpreted though, Tom... ;)

Code:
(P:Absolute time,seconds) 12 % 0.7 12 * > !
this will make the visible part 70% of the cycle (8.4 secs) and invisible parts of 30 % (3.6 secs).

You can invert the cycle by removing the "!" char.

Note the last sentence. The "!" operator in this instance is used to control which fraction of the evaluation is applied to the "visible" condition.
 
Last edited:
Back
Top