Jump to content
Sign in to follow this  
phjvh

Runway Symbol on an ADI

Recommended Posts

Guest Cylon21

Hi guys. I've come to the limits of my knowledge again. I'm trying to write an ADI that has a "runway symbol" on it. The runway symbol works like the LOC needle on an HSI, except that instead of showing 2.5 degrees on a LOCalizer approach, it shows 1.25 degrees left and right. The net effect is that you can fly more precisely down to minimums if you look at the runway symbol on the ADI as opposed to glancing down at the HSI. I was able to use the following code to shift the runway symbol left/right at a 1.25 degree ratio, but now I can't get it to go up and down. The up and down works as follows: above 200 feet (radio altimeter), the symbol is visible at the bottom of the instrument (you can still see it for left/right alignment). When you get below 200 feet, the runway symbol moves linearly with proportion to the radio altimeter going down to 0 feet. So at 0 feet, the runway symbol should be halfway up the instrument, in the center of the ADI. CODE TO MOVE IT LEFT/RIGHT(A:HSI HAS LOCALIZER, bool) if{ (A:HSI CDI needle, number) 64 min } els{ 0 }MY FEABLE ATTEMPT TO MAKE IT MOVE UP AND DOWN(A:HSI HAS LOCALIZER, bool) if{ ((A:Radio height, feet)) 200 min } els{ 0 } My Y shift code rendered the instrument unloadable in FS. Any ideas?ThanksCylon

Share this post


Link to post
Share on other sites

Hi,This is the working code for my PFD:(A:HSI has localizer, bool) (A:HSI CDI needle valid, bool) || (A:Radio height, feet) 2500 < &&(A:HSI CDI needle valid,bool) if{ (A:HSI CDI needle,number) } els{ 0 }(A:Radio height, feet) (G:Var1) -Hope you can extract something useful.Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest Cylon21

Thanks Jan. Works like a charm now!What exactly does

Share this post


Link to post
Share on other sites

Hi,If you use the clip command, you can hide everything outside the coordinates of top, bottom and borders; i.a.w. you see only the things in the "clip".Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...