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.

FIP gauge: code for Value = 1 re range of %s, not a specific %

Featured Replies

I am putting a FIP gauge together and want an 'almost empty' fuel warning light.  As a non programmer, I have figured out that the following will work to shift an image when fuel is 7% of capacity. (7% is 5 gallons in a BB58 tank)

 

<Element>
    <Image Name="light_red2.bmp" ImageSizes="28,28,28,28" />
        <Shift>
        <Value Minimum="0" Maximum="1">(A:FUEL TANK LEFT MAIN LEVEL,percent) int 7==</Value>
        <Nonlinearity>
            <Item Value="0" X="315" Y="150" />
            <Item Value="1" X="100" Y="145" />
        </Nonlinearity>
        </Shift>
     </Element>

 

However the warning light will only stay displayed while the tank is at 7%. When it drops below 7% the light goes out.

Can a more knowledgable person please  supply the VALUE code to create a value of 1 for all percentages 0 - 7    (or 8, 9, etc ) or if 0 is problematical, then 0.01 - 7

 

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.