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.

XML Newbie problem

Featured Replies

I have aproblem I can't find an answer to in all tutorials and forum posts I tried. Seems to me this is simply so obvious to everybody and I am missing something...I am trying to create some xml gauges for custom panels I am bulding and can't find the suitabale gauges elsewere.My questions is this.See attached part of the default DC3 Suction xml gauge code: - - - (A:Suction Pressure,inHg) This gauge shows engine suction pressure in units of 0-10 inHg.Now my question is this. How does the 'neede' object knows how much to move and in which direction when suction changes?Why would it only move between the '0' and '10' on the gauge base bitmap?If I created a custom gauge, with needles pointing, say, west. And the parameter the gauge shows (Airspeed, Altitude, whatever) changes, how would the gauge know how much to move? What is the full circle for it?Thanks, in advance,http://online.vatsimindicators.net/825051/142.png

  • Moderator

You left out some critical parts of the code in your example. Here is a complete code segment for a "rotating needle" in a suction gauge. Note first that the needle has been defined twice: one "normal" and the other "lighted." This is to provide control over lighting with a separate panel lights switch.(L:PanelLight_Flight,enum) 0.5 >=(*force a 0 if no power is available*) (A:Suction pressure,inHg)Notice the section above. This is where the limits for minimum and maximum deflection are listed. The X and Y coordinates are the pixels where the "tip of the needle" will be at the cited values. There are three absolute positions defined for values of 0, 3 and 6 respectively. The sim will interpolate the positions in a "non-linear" fashion for any value within the range of values listed.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.