- Messages
- 1,407
- Country
-
Hello everyone
I have a problem which I haven't been able to fix since several days of looking; that's why I dare to ask for help.
Basically, it is a conditional text issue where one of two conditions is not updating a reading from an A:Var, that's odd for me, because the A:Var in
question is included in the first selection that is working as it should. The gauge is a Fuel Display Indicator. Since I can't see where the problem resides,
I will provide as much information as I can.
The Bell 407 has three fuel tanks, and I will list the variables I used for each fuel tank:
Gauge A:Vars
(A:FUEL TANK CENTER QUANTITY,gallon)
(A:FUEL TANK LEFT AUX QUANTITY,gallon)
(A:FUEL TANK EXTERNAL1 QUANTITY,gallon)
Aircraft.cfg file equivalent used in [Fuel] header
Center1 (92 usable gallons)
LeftAux (38 idem)
External1 (19 idem)
A switch controls what information should be displayed and the custom variable I used to toggle between two options is (L:Bell_407_Fuel_QTY_FWD_Tank,bool).
And the conditional text is this:
Also, I've attached the entire gauge code (if you want to see it).
In advance, thank you kindly.
Sergio.
I have a problem which I haven't been able to fix since several days of looking; that's why I dare to ask for help.
Basically, it is a conditional text issue where one of two conditions is not updating a reading from an A:Var, that's odd for me, because the A:Var in
question is included in the first selection that is working as it should. The gauge is a Fuel Display Indicator. Since I can't see where the problem resides,
I will provide as much information as I can.
The Bell 407 has three fuel tanks, and I will list the variables I used for each fuel tank:
Gauge A:Vars
(A:FUEL TANK CENTER QUANTITY,gallon)
(A:FUEL TANK LEFT AUX QUANTITY,gallon)
(A:FUEL TANK EXTERNAL1 QUANTITY,gallon)
Aircraft.cfg file equivalent used in [Fuel] header
Center1 (92 usable gallons)
LeftAux (38 idem)
External1 (19 idem)
A switch controls what information should be displayed and the custom variable I used to toggle between two options is (L:Bell_407_Fuel_QTY_FWD_Tank,bool).
- If the variable (L:Bell_407_Fuel_QTY_FWD_Tank,bool) is false, then reading in the LCD is the sum of the fuel loaded all fuel tanks. This is the option that is working like it is meant to be. It updates the reading as the engine burns fuel.
- If the variable (L:Bell_407_Fuel_QTY_FWD_Tank,bool) is true, then reading in the LCD is the fuel quantity in the Left Auxiliary Tank. Here is the problem: I can read number 254.6 lbs of fuel (38 gallons * 6.7 lb/gal) but the reading is never updated!!! No matter if the engine is burning fuel.
HTML:
<Update>
(L:Bell_407_Fuel_QTY_FWD_Tank,bool) !
if{
(A:FUEL TANK CENTER QUANTITY,gallon) (A:FUEL TANK EXTERNAL1 QUANTITY,gallon) + (A:FUEL TANK LEFT AUX QUANTITY,gallon) + 6.7 *
(>L:Bell_407_Fuel_Digital_Reading,gallon)
}
(L:Bell_407_Fuel_QTY_FWD_Tank,bool)
if{
(A:FUEL TANK LEFT AUX QUANTITY,gallon) 6.7 *
(>L:Bell_407_Fuel_Digital_Reading,gallon)
}
</Update>
And the conditional text is this:
HTML:
<Element>
<Position X="188" Y="354"/>
<Visible>(A:Circuit general panel on, bool) </Visible>
<FormattedText X="178" Y="80" Bright="Yes" Length="6" Font="Quartz" FontSize="80" Color="#8c9e6b" Adjust="Right" VerticalAdjust="Center">
<Axis X="24" Y="0"/>
<String>
%((L:Bell_407_Fuel_Digital_Reading,gallon))%!03.1f!
</String>
</FormattedText>
</Element>
Also, I've attached the entire gauge code (if you want to see it).
In advance, thank you kindly.
Sergio.
Attachments
Last edited: