- Messages
- 542
- Country

I have developed a method to calculate the circuit width , however I suspect that
the five element sections might possibly be all incorporated into one element section ,
but I have no idea how to do it.
It's in a previously mentioned "Mark Position" instrument.
Basics :-
1. You capture the aircraft's position (Lat/Long) , plus it's Heading.
That is fed into a Geocalc to get both Bearing and Distance.
2. The captured Heading can then be used as an extended runway centerline.
3. The
- Captured position .
- Extended runway centerline (heading) .
- The aircraft's current location and Bearing and Distance.
all can be used in a Tangent calculation to determine the current Circuit width.
The aircraft's current position is considered as being on a line that is parallel to
the extended runway centerline line.
To cover all four legs of a circuit it is necessary to do four separate calculation strings ,
one for each quadrant centered on the captured "Mark Position .
The first element section defines a 360 degree circle about the Mark position commencing
from the ' Extended runway centerline (heading) '.
The next four elements deal with each quadrant using a Visability statement to
define the angular range for each.
This shot might make it a little clearer,
The elements look similar to a conditional statement with 4 conditions each having their own
calculation.
This the the Element code, ( it works )
Any ideas to incorporate it into one Element ?
Cheers
Karol
the five element sections might possibly be all incorporated into one element section ,
but I have no idea how to do it.
It's in a previously mentioned "Mark Position" instrument.
Basics :-
1. You capture the aircraft's position (Lat/Long) , plus it's Heading.
That is fed into a Geocalc to get both Bearing and Distance.
2. The captured Heading can then be used as an extended runway centerline.
3. The
- Captured position .
- Extended runway centerline (heading) .
- The aircraft's current location and Bearing and Distance.
all can be used in a Tangent calculation to determine the current Circuit width.
The aircraft's current position is considered as being on a line that is parallel to
the extended runway centerline line.
To cover all four legs of a circuit it is necessary to do four separate calculation strings ,
one for each quadrant centered on the captured "Mark Position .
The first element section defines a 360 degree circle about the Mark position commencing
from the ' Extended runway centerline (heading) '.
The next four elements deal with each quadrant using a Visability statement to
define the angular range for each.
This shot might make it a little clearer,
The elements look similar to a conditional statement with 4 conditions each having their own
calculation.
This the the Element code, ( it works )
Code:
<!--CIRCUIT WIDTH START-->
<!--DEFINE 1 - 360 degrees relative to nose ** from Mk Pos to A/C -->
<Element>
<Position X="1" Y="150"/>
<FormattedText X="33" Y="8" Font="Tahoma" FontSize="8" LineSpacing="8" Adjust="Right" Color="#000000" Bright="Yes">
<String>%((L:HEADINGsavedMarkPos, radians) (L:BearingMarkPos,radians) (A:GPS MAGVAR, radians) - - rnor rddg 360 - abs (>L:QuadrantSectors, degrees) )%!5.1f!%</String>
</FormattedText>
</Element>
<!--QUADRANT # 1 *** 001 to 090 degrees = circuit Width-->
<Element Name="1-4 QUAD">
<Position X="0" Y="0"/>
<Visible>(L:QuadrantSectors, degrees) 0.1 > (L:QuadrantSectors, degrees) 90 < and</Visible>
<Element>
<Position X="40" Y="150"/>
<FormattedText X="130" Y="12" Font="Tahoma" FontSize="11" LineSpacing="11" Adjust="Right" Color="#787878" Bright="Yes">
<String>%Cct Width %((L:HEADINGsavedMarkPos, radians) (L:BearingMarkPos,radians) (A:GPS MAGVAR, radians) - - rnor pi 2 * - atg (L:DistanceMarkPos,nmiles) * abs )%!6.2f!% nm Right-F%</String>
</FormattedText>
</Element>
</Element>
<!--QUADRANT # 2 *** 091 to 180 degrees = circuit Width-->
<Element Name="2-4 QUAD">
<Position X="0" Y="0"/>
<Visible>(L:QuadrantSectors, degrees) 90.1 > (L:QuadrantSectors, degrees) 180 < and</Visible>
<Element>
<Position X="40" Y="150"/>
<FormattedText X="130" Y="12" Font="Tahoma" FontSize="11" LineSpacing="11" Adjust="Right" Color="#787878" Bright="Yes">
<String>%Cct Width %((L:HEADINGsavedMarkPos, radians) (L:BearingMarkPos,radians) (A:GPS MAGVAR, radians) - - rnor pi - pi 2 / - pi 2 / + atg (L:DistanceMarkPos,nmiles) * abs )%!6.2f!% nm Right-R% </String>
</FormattedText>
</Element>
</Element>
<!--QUADRANT # 3 *** 181 to 270 degrees = circuit Width-->
<Element Name="3-4 QUAD">
<Position X="0" Y="0"/>
<Visible>(L:QuadrantSectors, degrees) 180.1 > (L:QuadrantSectors, degrees) 270 < and</Visible>
<Element>
<Position X="40" Y="150"/>
<FormattedText X="130" Y="12" Font="Tahoma" FontSize="11" LineSpacing="11" Adjust="Right" Color="#787878" Bright="Yes">
<String>%Cct Width %((L:HEADINGsavedMarkPos, radians) (L:BearingMarkPos,radians) (A:GPS MAGVAR, radians) - - rnor pi - atg (L:DistanceMarkPos,nmiles) * abs )%!6.2f!% nm Left-R%</String>
</FormattedText>
</Element>
</Element>
<!--QUADRANT # 4 *** 271 to 360 degrees = circuit Width-->
<Element Name="4-4 QUAD">
<Position X="0" Y="0"/>
<Visible>(L:QuadrantSectors, degrees) 270.1 > (L:QuadrantSectors, degrees) 360 < and</Visible>
<Element>
<Position X="40" Y="150"/>
<FormattedText X="130" Y="12" Font="Tahoma" FontSize="11" LineSpacing="11" Adjust="Right" Color="#787878" Bright="Yes">
<String>%Cct Width %((L:HEADINGsavedMarkPos, radians) (L:BearingMarkPos,radians) (A:GPS MAGVAR, radians) - - rnor pi 2 / - pi 2 / + atg (L:DistanceMarkPos,nmiles) * abs )%!6.2f!% nm Left-F%</String>
</FormattedText>
</Element>
</Element>
<!--CIRCUIT WIDTH END-->
Any ideas to incorporate it into one Element ?
Cheers
Karol
Last edited:
