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

Calculating Glideslope

Messages
542
Country
australia
I am trying to calculate the current glideslope angle in degrees to a
known ground position .

Horizontal distance is.
Code:
(L:DistanceMarkPos,nmiles) 6076 *

Vertical distance is,
Code:
(A:Indicated Altitude, feet) (L:MarkGROUND ALTITUDE, feet) -

I tried the following without success ,
Code:
%((A:Indicated Altitude, feet) (L:MarkGROUND ALTITUDE, feet) - (L:DistanceMarkPos,nmiles) 6076 * / tg  * pi 180 /) %!03d!%

Any assistance would be appreciated .

Cheers
Karol
 
Hi Karol,

At the end of the formula, both the function (tg) and calculation order is wrong .. :)

Should read : ..... atg 180 pi / *)

Or even simpler .... atg rddg)

( so use arc tangens function to calculate the angle; rddg converts an angle in radians into degrees )

Cheers, Rob
 
Last edited:
Hi Rob

Thank you.
It now works beautifully , I used the following ,
Code:
%GS %((A:Indicated Altitude, feet) (L:MarkGROUND ALTITUDE, feet) - (L:DistanceMarkPos,nmiles) 6076 * / atg rddg ) %!5.2f!%

I created an instrument for my panel , then realised that it had other potent capabilities.

So I just had a little fun with it ,
with the above line of code I can now conduct precision approach
and landings anywhere even in zero visability conditions .
That includes isolated paddocks , lakes , rivers , roads , and the fun one is on hardened rooftops
on top of 500' office blocks.
I have precision , bearing to heading , bearing to touchdown spot . distance to go in feet , height above applicable surface in feet ,
and now the current approach glideslope angle .

Cheers
Karol
 
An interesting aspect that results from the above glideslope readout is that I can be
at say 35,000' and 90nm from my defined spot.
I then turn till the heading = bearing , then push the nose down till the
glideslope value remains constant , then maintain that value I will descend
to the target spot , rather neat !

Cheers
Karol
 
An interesting aspect that results from the above glideslope readout is that I can be
at say 35,000' and 90nm from my defined spot.
I then turn till the heading = bearing , then push the nose down till the
glideslope value remains constant , then maintain that value I will descend
to the target spot , rather neat !

Yep, very neat. Except for that hill before the airport ;). Presumably, your target spot is some sort of enroute or approach fix. CFIT.

Your stuff is always very cool to follow.

Bob
 
Hi Bob ,

Thank you .
Hills .. what hills ? , in a cloud you see no hills , therefore no angst ; .

I created a simple instrument to emulate a real world military feature , and that works nicely.

But .... I have to admit the above is much more fun .
I'll be putting it in my Choppers , seaplanes , and cropduster/firefighter aircraft.

I will in a new thread post the code for this function , it's only a Demo unit ,
it's display format could be bettered to make it more pilot friendly.
Others might find it useful .

Cheers
Karol
 
Presumably, your target spot is some sort of enroute or approach fix.

No , I create my own spots on the fly anywhere that I desire , while it has it's limits ,
it's much more flexible .
The same applies to any specific hardened rooftop that you might choose .

It kind of has a tape measure , so you can determine the length of a paddock or stretch of a river
to establish if it long enough to land/take off from , and additionally you can go off any distance
then come back later and find your obscure spot and align with your saved landing heading and land
at the exact spot.

Cheers
Karol
 
Back
Top