Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Altitude Change Gauge

Featured Replies

Hi all,I'm making a gauge that will trigger a bitmap when the altitude hits every 500ft,(0-500, 501-1000, etc) both up and down in altitude.I'm not to sure where to begin since I could make a gauge like such:(A:Indicated Altitude, feet) 501 < (A:Indicated Altitude, feet) 0 > &But, I would have to make at least 50 entries just for 25,000 ft. There has to be a simpler way.Any help will be greatly appreciated.Thanks,Benny

Yeap, that is the way you'd do it in XML.

If I understand you correctly, you could try,(A:Indicated Altitude, feet) 500 / flretc.............

Hi,Just a question, do you need a different bitmap for every 500 ft, or is the same bmp that appears and dissapears?How long does the bmp remain visible since triggered?The solution is simple in any case but these things are important to give it correct.Tom

  • Author

Hi Tom, It's a different bitmap for every 500 and stays on the entire time from activating until the new bitmap takes over. It's actually a number reduced by 1 as the aircraft climbs, and gains as it descends. The start number for 0-500ft is 200; so at 501 feet, it will appear as 199, etc... I thought about using a string as well but didn't know the code to change it, and maybe bitmaps are easier?Any Ideas on both?Thanks,Benny

Hi Benny,Using a string would be very simple:%((A:Indicated Altitude, feet) 501 / int 200 r -)%!d!In case of bitmaps, you could use the same formula for a rolling number. There are many examples on rolling numbers in this forum, surely you'll find some suitable if you do an advanced searchTom

  • Author

Hi Tom,The code worked perfectly, I just added a ( - ) after the 501 to get the negative altitude to show up. I have 2 strings - one string for the positive and one for the negative triggered by the plus/minus 0 feet. One more question - something I forgot earlier, how do I "cap" off the numbers - what I mean to say is that after it gets to 150 and I want it to stop there, then what do I use to stop?Best Regards,Benny

  • Author

Hi,I also tried to add 150 > at the end but no luck.Benny

Sorry but I don't understand what do you want to do.Maybe doing a click the counter will stop at a certain number ie 195 and remain there no matter the aircraft keeps climbing?Tom

  • Author

Hi Tom,What I want to happen is that once the plane reaches lets say 25,000ft, then the counter stops counting away and stays on with the current count. I need this to happen without further clicking to stop this.So the limit will be 25,000ft. Is there any way to limit this by Alt or by a count number say 150?%((A:Indicated Altitude, feet) 501 / int 200 r -)%!d!Thanks,Benny

This way (for a top of 150) :%((A:Indicated Altitude, feet) 501 / int 200 r- 150 min)%!d!Tom

  • Author

Tom,YOU ARE THE MAN!!!!The change worked perfectly. I was able to solve another problem code because of you.Thanks again.:)Benny

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.