- Messages
- 3
- Country

Greetings all!
I'm presently in the process of modifying the engine management display of a recently release PC-12 that is displaying an incorrect weight for fuel indication and fuel used counter. I have successfully managed to correct the total fuel weight display (it was originally displaying liters) to display pounds.
Now the issue I am having is that I can't for the life of me get the "fuel used" indication to display fuel used in pounds. At the present it is indicating in negative liters initially until the counter is reset. It will then start counting up in liters. So after only a few minutes the reading is off by quite a bit and it will worsen over time due to the imperial/metric differences.
Is there a simple way of creating a fuel used counter that can be reset to zero by mouse click and shows the readout in pounds?
Here is the XML code for the Fuel Used function:
This is the Macro Code
This is the element code:
This is the code for the reset on the counter:
I appreciate any tips and insight as this is rather far from my norm of texture design.
I'm presently in the process of modifying the engine management display of a recently release PC-12 that is displaying an incorrect weight for fuel indication and fuel used counter. I have successfully managed to correct the total fuel weight display (it was originally displaying liters) to display pounds.
Now the issue I am having is that I can't for the life of me get the "fuel used" indication to display fuel used in pounds. At the present it is indicating in negative liters initially until the counter is reset. It will then start counting up in liters. So after only a few minutes the reading is off by quite a bit and it will worsen over time due to the imperial/metric differences.
Is there a simple way of creating a fuel used counter that can be reset to zero by mouse click and shows the readout in pounds?
Here is the XML code for the Fuel Used function:
This is the Macro Code
Code:
</Macro>
<Macro id="Fuel Used lbs" Name="FUELUSEDLBS">
<MacroValue>(L:fuelQuantitylts, liters) (A:FUEL TOTAL QUANTITY, liters) -</MacroValue>
This is the element code:
Code:
<Element id="Gauge_USED">
<FloatPosition>210.000,506.000</FloatPosition>
<Visibility>(A:CIRCUIT GENERAL PANEL ON, bool)</Visibility>
<GaugeText id="GaugeText">
<Bright>True</Bright>
<FontFace>LCD_EIS_PC12</FontFace>
<FontColor>@PanelFontColor</FontColor>
<FontHeightScript>@FontSizeCellEDISmall</FontHeightScript>
<HorizontalAlign>RIGHT</HorizontalAlign>
<GaugeString>%(@FUELUSEDLBS 0.5 + int)%!d!</GaugeString>
<Length>4</Length>
<WidthScript>150</WidthScript>
<HeightScript>@FontSizeCellEDI</HeightScript>
<Transparent>True</Transparent>
</GaugeText>
</Element>
This is the code for the reset on the counter:
Code:
<MouseArea id="CLICK">
<FloatPosition>0.000,0.000</FloatPosition>
<Size>60,60</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<Script>(A:FUEL TOTAL QUANTITY, liters) (>L:fuelQuantitylts, liters)
(P:local time, seconds) (>L:FUEL_INIT_TIMER, number)
</Script>
<ClickRepeat>True</ClickRepeat>
</MouseClick>
</MouseArea>
I appreciate any tips and insight as this is rather far from my norm of texture design.
