Jump to content
Sign in to follow this  
Guest harry3

XML: Shift+Calculation

Recommended Posts

Guest harry3

Hi!I want to move a bitmap, but only if the localizer is active. If LOC isn't active, the returned value should be: 2500If the LOC is active, the returned value should be the altitude above ground, in feet. (A:HSI has localizer, bool) if{(A:Radio Height, feet)} els{2500} Regards,Harry :-)

Share this post


Link to post
Share on other sites

Harry, It should work as you wrote it... A rising runway perhaps ???(A:HSI has localizer, bool) might not be the right variable to use as ( if my memory serves right ) that will return a 1 if the station tuned is a localizer.(A:HSI CDI needle, number) 127 / s1 -0.6 > l1 0.6 < & might work properly as if the CDI needle is between those limits the LOC is basically captured. Here's a snippet from EADI where the RR will only appear if LOC is captured & below 1500 ft.. It then moves left or right in 2 modes. ( Coarse, Fine) Then moves up or down based on Radio Height.. A double (A:Radio height, feet) 1500 < (A:HSI CDI needle, number) 127 / s1 -0.6 > l1 0.6 < & &(A:HSI CDI needle, number) s1 127 / s1 -0.6 < l1 0.6 > || if{ (A:HSI CDI needle, number) 127 / } els{ (A:HSI CDI needle, number) 75 / } (A:Radio height, feet) Regards,RomanGREEN BAY PACKERS][/i :-ukliam :-beerchug


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Share this post


Link to post
Share on other sites
Guest harry3

Thanks for the answer.But the code was wasn't wrong!The problem was that I didn't leave a space between brackets and the Variable!Now it works! (A:HSI has localizer, bool) if{ (A:Radio Height, feet) }els{ 2500 } Yes, it is a Rising Runway.Regards,Harri

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