Jump to content
Sign in to follow this  
taguilo

Altimeter Help !!!

Recommended Posts

Guest codvir

JIM AND ROMAN THANKS ALOT.Roman, your code is working great Thanks

Share this post


Link to post
Share on other sites
Guest jimcooper1

I knew there must be a more elegant way using XML...I must try and get my head around RPN...Glad you got it sortedRegardsJim

Share this post


Link to post
Share on other sites

Hi,Maybe this code could be useful as well, its shows the EXACT way a real Boeing-type altimeter works. Also is a good example of advanced XML technics.Put this macro before any of the s of the gauge: (A:Indicated Altitude, feet) sp0 l0 int 10 @2 pow % 10 @2 1 - @1 1 - - 0 max pow / intThen, inside the for the 10 thousands digit: @AltDigit(4,4) s1 9980 >=l1 100 % 80 - 20 / * @AltDigit(1,5) +For the thousands,@AltDigit(3,3) s1 980 >=l1 100 % 80 - 20 / * @AltDigit(1,4) +For the hundreds,@AltDigit(2,2) s1 80 >=l1 80 - 20 / * @AltDigit(1,3) +And for the tenths (A:Indicated Altitude, feet) abs 100 % 10 / Short and effective :-) Tom

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