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:
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...:
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...
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
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 >= @ALT 5000 < &&</Visible>
<Element>
<Visible>@POSLA 30 >= @POSLA 31 < &&</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>
But if I add following <Visible> nothing shows...:
Code:
<Element>
<Visible>@POSLO -84 >= @POSLO -85 < &&</Visible>
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

