- Messages
- 1,468
- Country

Is there a better and easier way to do this? (L:upset_A,number) 1 == is the value returned from the switch and causes the hatched image to appear for 15 seconds (what I want). But after that it flickers from on image to another (not what I want).
How best can I get it to show the hatched image only once and only for fifteen seconds until the next time the switch returns a value of 1.
In effect what I'm after is the switch to return the value 1 (it does that ok) with this value the hatch image to appear once only for fifteen seconds and be replaced by the UPSET_UP.bmp until the next time.
your ideas appreciated.
vololiberista
How best can I get it to show the hatched image only once and only for fifteen seconds until the next time the switch returns a value of 1.
In effect what I'm after is the switch to return the value 1 (it does that ok) with this value the hatch image to appear once only for fifteen seconds and be replaced by the UPSET_UP.bmp until the next time.
your ideas appreciated.
vololiberista
Code:
<Gauge Name="Left Aileron Upset TI" Version="1.0">
<Element>
<Image Name="UPSET_HATCH.bmp" Luminous="1"/>
<Select>
<Value>(L:upset_A,number) 1 == if{ 2 (A:Fuel total quantity,gallons) 0 > (A:Indicated Altitude,feet) and if{ (P:Local time,seconds) 15 % } } els{ (A:Fuel total quantity,gallons) 0 > (A:Indicated Altitude,feet) and if{ (P:Local time,seconds) 0 % } } </Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
</Failures>
<Case Value="0">
<Image Name="UPSET_UP.bmp" Luminous="1"/>
</Case>
<Case Value="1">
<Image Name="UPSET_HATCH.bmp" Luminous="1"/>
</Case>
<Case Value="2">
<Image Name="UPSET_UP.bmp" Luminous="1"/>
</Case>
</Select>
</Element>
</Gauge>

