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

Flap Variables:Help

Messages
24
Country
us-pennsylvania
Hello:
I need some help in setting a flap variable that will make an image warning light, that I have created, turn on when the flaps are extended 28 degrees or higher.

Currently, I have a working select case XML code for the flaps of the following:
<Element id="Element_FlapRight">
<FloatPosition>87.000,405.000</FloatPosition>
<Select id="Select_RightFlapCase">
<Expression id="Expression_RightFlapCase">
<Minimum>0.000</Minimum>
<Maximum>7.000</Maximum>
<Script>(A:Flaps handle index, number)</Script>
</Expression>
And so on........................


Back to the image warning light:
If possible, I would like to work with something like the above script variable: (A:Flaps handle index, number)

But maybe working with this following variable may be better:
(A:FLAPS HANDLE PERCENT,percent)

Anyway, at this point I am not sure, so any help would be appreciated.

Recency.
 
Last edited:
Yep! Use the percent units instead. It really is that simple... ;)
 
You can also use
(A:TRAILING EDGE FLAPS LEFT PERCENT,percent) or
(A:TRAILING EDGE FLAPS LEFT ANGLE,degree)
for the actual flap position.

Gunter
 
Having Problems with variable

Ok. I have tried a few variable combinations, however cannot get the guage to work. The warning light is constantly visible from 0 all the way to 40. I do not want to show the light (image) until the flaps reach 28degrees. The following XML code is one of the last variable code that I have tried:

<Element id="Element_advisoryLANDgreenlightON">
<FloatPosition>140.000,520.000</FloatPosition>
<Visibility>%((A:TRAILING EDGE FLAPS LEFT ANGLE,degrees) 28 &gt; )%</Visibility>
<Image id="SLATadvisoryLANDgreenlightONG.bmp" Name="SLATadvisoryLANDgreenlightONG.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
</Image>
</Element>

Something is wrong but not sure what?
 
Last edited:
Take the percentage signs( and the outer set of brackets) out from the <Visibility> tag. You only ever need percent signs round a script if it's in a GaugeText. Everywhere else you don't need them.
 
Without the %'s and outside brackets of course, the XML code for the advisory light is working great.

<Element id="Element_advisoryLANDgreenlightON">
<FloatPosition>140.000,520.000</FloatPosition>
<Visibility>(A:TRAILING EDGE FLAPS LEFT ANGLE,degrees) 27 &gt;</Visibility>
<Image id="SLATadvisoryLANDgreenlightONG.bmp" Name="SLATadvisoryLANDgreenlightONG.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
</Image>
</Element>
<Element id="Element_advisoryLANDgreenlightOff">
<FloatPosition>140.000,520.000</FloatPosition>
<Visibility>(A:TRAILING EDGE FLAPS LEFT ANGLE,degrees) 27 &lt;</Visibility>
<Image id="SLATadvisoryLANDgreenlightOFF.bmp" Name="SLATadvisoryLANDgreenlightOFF.bmp">
<Transparent>True</Transparent>
</Image>
</Element>

Thanks to All for the tips and advice!
Recency
 
Back
Top