• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 FUEL USED CALCULATION FOR ECAM SYSTEM DISPLAY

Messages
7
Country
germany
I am working on an ECAM system display. Since a long time I am traying to learn xml coding but I am having a hard time. For Airbus ECAM indication I need to do a fuel used indication per engine, so the code should sum up engine fuel flow per gauge cycle. So far I not succeeded. I consulted an earlier post here but still having difficulties - the code is not working. Can someone provide help please.
 

Attachments

The following might be of use ,

<Element> <Position X="75" Y="354"/> <FormattedText X="310" Y="50" Font="Tahoma" FontSize="16" LineSpacing="18" Adjust="Left" Color="#93FF72" Bright="Yes" Tabs="0,1L,90L,205L"> <String>\t%Fuel Burn%\t%ENG #1 %((A:GENERAL ENG FUEL USED SINCE START:01, pounds))%!5d!%\t%ENG #2 %((A:GENERAL ENG FUEL USED SINCE START:02, pounds))%!5d!% \n\t% -lbs-%\t %TOTAL% %((A:GENERAL ENG FUEL USED SINCE START:01, pounds) (A:GENERAL ENG FUEL USED SINCE START:02, pounds) +)%!5d!% %lbs% </String> </FormattedText> </Element>

the code is the text in white rectangle at left of shot

Cheers
Karol

capture_02092009_162244.jpg
 
Hi Karol, thanks for replying.

Looking at your code am I right that there is already a FS parameter available (A:GENERAL ENG FUEL USED SINCE START:01, pounds) so there is no need to make any instruction code to calculate fuel used per engine since start?

Michael from Frankfurt, Germany
 
Hi Michael

My panel is in FSX , however I would guess that the parameter will work in FS2004 .
note that the :01 is for engine number one , for other engines use :02 :03 :04 .....
try the parameter as a test and do a flight to verify its function .
Notice that I set each throttle to different settings to display differing fuel useage .

Cheers
Karol
 
Just tested it, no help - indication is ZERO. I believe the internal variable is not applicable to FS2004.

Michael
 
Hi Guenther, I actually thought so. I have the internal variables list at hand so (A:GENERAL ENG FUEL USED SINCE START:01, pounds) seemed unfamiliar to me. FS2004 variables don't use the :index syntax to my knowledge.
So the issue is still unsolved. I need a code that sums up the fuel flow during every gauge cycle using the (A:Turb Eng1 fuel flow PPH, pounds per hour) variable. A question in relation to the required code is how the gauge update rate is accounted for. In some gauges an update rate is defined in others no specific update rate is indicated. What is the default in this case?

Any help is greatly appreciated.

Michael
 
Gauges update eighteen times a second, unless you control the update through the use of timers. I don't do XML, only C/C++, so check the syntax but this might fix your problem:
Code:
(A:Turb Eng1 fuel flow PPH,pounds per hour) + 3600 / 18 /
 
Back
Top