Sign in to follow this  

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

Recommended Posts

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)


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


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


Share this post

Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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