- Messages
- 210
- Country

A have modified an exisiting (working) code for a fuel totalizer that counts up the total fuel used in lbs. It also has a reset.
Like I said, this worked fine with any 2 engine aircraft, but I needed it to work for a 4 engine airplane now. I just added the ENG3 and ENG4 entries to the end of the code, but now it does not work properly. It actually counts down and it is not close to the correct value. Wondering if that 3600 value is the culprit, but I am not sure what it for.
Thanks for any help,
Greg
Like I said, this worked fine with any 2 engine aircraft, but I needed it to work for a 4 engine airplane now. I just added the ENG3 and ENG4 entries to the end of the code, but now it does not work properly. It actually counts down and it is not close to the correct value. Wondering if that 3600 value is the culprit, but I am not sure what it for.
Code:
<Gauge Name="Totalizador" Version="1.0">
<Image Name="total_back.bmp" ImageSizes="43,15"/>
<Element>
<Select>
<Value>(P:Local time,seconds) flr 2 % (L:TimeFlag,bool) != if{ (L:Totalizer,number) (A:Turb Eng1 fuel flow PPH,pounds per hour) (A:Turb Eng2 fuel flow PPH,pounds per hour) (A:Turb Eng3 fuel flow PPH,pounds per hour) (A:Turb Eng4 fuel flow PPH,pounds per hour) + 3600 / + (>L:Totalizer,number) (L:TimeFlag,bool) ! (>L:TimeFlag,bool) }</Value>
</Select>
</Element>
<Element>
<Position X="0" Y="0"/>
<Text X="120" Y="15" Luminous="Yes" Length="12" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Center" Fixed="Yes">
<String>%((L:Totalizer,number) 9999 min 0 max)%!04d!</String>
</Text>
</Element>
<Mouse>
<Cursor Type="Hand"/>
<Click>0 (>L:Totalizer,number)</Click>
</Mouse>
</Gauge>
Thanks for any help,
Greg

