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

P3D v3 <Visible> or not

Messages
16
Country
us-florida
I am working on a gauge that helps student pilots, including myself, to learn the airspace structure of a certain region...
The intention is that, if they are entering a zone, they get all information about that zone in Text.
ie: if a zone is between N30-31 and W85-86, from 2000ft till 5000ft, when the pilot is entering that zone he will get information:"Welcome, test-zone 1A, airspaceclass D, height between 2000ft and 5000ft, square from N30-31 and W84-85, controlled by .... ATC"
So far 2 things work with this code, Altitude and Latitude:

Code:
<Element>           
            <Macro Name="ALT">(A:Indicated Altitude, feet)</Macro>
            <Macro Name="POSLA">(A:Plane Latitude, degrees)</Macro>
            <Macro Name="POSLO">(A:Plane Longitude, degrees)</Macro>
            <Element>
            <Visible>@ALT 2000 &gt;= @ALT 5000 &lt; &amp;&amp;</Visible>
            <Element>
            <Visible>@POSLA 30 &gt;= @POSLA 31 &lt; &amp;&amp;</Visible>
            <Element>
            <Position X="150" Y="595"/>
            <Text X="1900" Y="35" Length="190" Fixed="no" Font="tahoma" FontSize="32" Adjust="Left" VerticalAdjust="center" Color="#FFFFFF" Bright="Yes">
            <String>Welcome, test-zone 1A, airspaceclass D, height between 2000ft and 5000ft, square from N30-31 and W84-85, controlled by .... ATC%</String>
            </Text>
            </Element>
            </Element>
            </Element>
            </Element>
Thus between N30 and N31 and between 2000ft and 5000ft the Text is visible on the screen.

But if I add following <Visible> nothing shows...:

Code:
<Element>
            <Visible>@POSLO -84 &gt;= @POSLO -85 &lt; &amp;&amp;</Visible>
Although I put an extra </Element> at the end of the code.
What is wrong with that?

Another <Visible> I want to add is that the pilot should be on the correct frequency
But following code does not work...
Code:
<Visible>((A:COM1 Active Frequency, Mhz) 121.900)</Visible>

Another <Visible> I would like to implement is a zone of a certain radial with the center
on a LatLon position, is that possible?

Any solutions for these problems?

Thanks,

Bassy
 
This one:
Code:
<Visible>@POSLO -84 &gt;= @POSLO -85 &lt; &amp;&amp;</Visible>
make it
Code:
<Visible>@POSLO -85 >= @POSLO -84 &lt;= and</Visible>

And use this:
Code:
<Visible>(A:COM1 Active Frequency, Mhz) 121.900 !=</Visible>

Tom
 
Ok Tom,

That way it works nicely.

Any positive on the last question?

Another <Visible> I would like to implement is a zone with a 5NM radius with the center
on a LatLon position, is that possible?
OR a zone with a 5NM radius at a position on radial 310, 8NM from a VOR...

If I know that solution, the gauge would be fantastic (and free for everyone when it is ready)

Bassy
 
Another <Visible> I would like to implement is a zone with a 5NM radius with the center
on a LatLon position, is that possible?
OR a zone with a 5NM radius at a position on radial 310, 8NM from a VOR...

Yes, it is possible indeed. But requires a not-so-basic code to obtain that, the first option easier than the second one I guess.

Tom
 
Although I managed to define the Zones, with Tom's help, I just realised that they are all rectangles with the upper boundary
on the same latitude.
There are no zones, that I know of, build that way.
Some zones are trapezium shaped and the boundaries are not 000, 090, 180 or 270 degrees

Bassy
 
Last edited:
Back
Top