December 30, 200322 yr 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
December 31, 200322 yr Author 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" Jan "Beatus ille qui procul negotiis..."
December 31, 200322 yr Author 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" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment