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.

Four Tank Fuel Gauge

Featured Replies

Can one of you kind souls tell an old dumb guy why the tooltips won't read on this? Tanks are; LeftMainRightMainLeftAuxRightAuxThis message box sure scatters the code around huh!!!Thanks John

>Can one of you kind souls tell an old dumb guy why the>tooltips won't read on this? Tanks are;> >LeftMain>RightMain>LeftAux>RightAux>>> > > -SNIP- removed for brevity...> >>This message box sure scatters the code around huh!!!>>Thanks John You might try something like this, John. Although a bit "wordier", I know that it does work. Replace your "" with this: Left Main Tank (%((A:Fuel tank left main quantity, gallons) 6.7 * flr)%!d! lbs) Paul

Wide-5.jpg

  • Author

Paul thanks very much. That string works like a champ. Uhhh,, what part of the brackets would I have to remove to read in gallons. Some of the folks in DC3 Airways like gallons readout, for myself I had rather have lbs so I will use it as is. I made this four tank gauge maybe a year ago after one of our pilots took a pic of it in a DC3. I made it from the pic.John

  • Moderator

Left Main Tank (%((A:Fuel tank left main quantity, gallons))%!d! gals)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

>Paul thanks very much. That string works like a champ. Uhhh,,>what part of the brackets would I have to remove to read in>gallons. Some of the folks in DC3 Airways like gallons>readout, for myself I had rather have lbs so I will use it as>is. I made this four tank gauge maybe a year ago after one of>our pilots took a pic of it in a DC3. I made it from the pic.>>John Lets see if I can do this without screwing it up :) Left Main Tank (%(A:Fuel tank left main quantity, gallons) %!d! Gal)I think that will do it...the "6.7 * flr" part converts the gallonsreturned by the "(A:Fuel tank left main quantity, gallons)" partof the statement to pounds ( multiples gallaons by 6.7 )The "!d! lbs" part defines the numeriacl string conversion andadds the text "lbs", so the becomes "!d! Gal" for your use."Gal" can be "Gallons" if you wish.Here's a statement that will display the fuel state in percent:Right Tank (%((A:FUEL RIGHT QUANTITY, gallons) (A:FUEL RIGHT CAPACITY, gallons) / 100 * near)%!d!%%)By looking at various structures in the XML code you can begin tounderstand what does what :) Paul

Wide-5.jpg

  • Author

Thanks Bill and Paul. After a bit I think I could replace the 6.7 with 1.0 and it would prob work. And Paul your right, by looking at the string it comes to make sense even to me. LOL I wish there was a better tutorial on this than the MS sdk.John

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.