July 1, 201411 yr 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