• 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.

(A:FUEL CROSS FEED, enum)

Heretic

Resource contributor
Messages
6,830
Country
germany
Has anybody ever noticed that this variable supports more values than just 0 and 1?

I've got a twin engine airplane with a left and right main tank. Both tanks have an electric fuel pump each and are connected by a cross feed line.
Feeding from left to right is a matter of opening the cross feed valve and switching off the boost pump of the right tank, and vice versa.

The documented value for the variable in the ESP SDK* are "0 = closed" and "1 = open", but the unit is "enum".


The code below controls the fuel selectors based on crossfeed valve and fuel pump state.

Code:
(A:FUEL CROSS FEED,enum) 0 == 
if{ (A:FUEL TANK SELECTOR:1, enum) 2 != if{ 2 (>K:FUEL_SELECTOR_SET) }
    (A:FUEL TANK SELECTOR:2, enum) 3 != if{ 3 (>K:FUEL_SELECTOR_2_SET) } }
els{ (A:GENERAL ENG FUEL PUMP ON:1, Bool) (A:GENERAL ENG FUEL PUMP ON:2, Bool) >
     if{ (A:FUEL TANK SELECTOR:1, enum) 2 != if{ 2 (>K:FUEL_SELECTOR_SET) }
         (A:FUEL TANK SELECTOR:2, enum) 2 != if{ 2 (>K:FUEL_SELECTOR_2_SET) } }
     (A:GENERAL ENG FUEL PUMP ON:1, Bool) (A:GENERAL ENG FUEL PUMP ON:2, Bool) <
     if{ (A:FUEL TANK SELECTOR:1, enum) 3 != if{ 3 (>K:FUEL_SELECTOR_SET) }
         (A:FUEL TANK SELECTOR:2, enum) 3 != if{ 3 (>K:FUEL_SELECTOR_2_SET) } }
     (A:GENERAL ENG FUEL PUMP ON:1, Bool) (A:GENERAL ENG FUEL PUMP ON:2, Bool) ==
     if{ (A:FUEL TANK SELECTOR:1, enum) 2 != if{ 2 (>K:FUEL_SELECTOR_SET) }
         (A:FUEL TANK SELECTOR:2, enum) 3 != if{ 3 (>K:FUEL_SELECTOR_2_SET) } } }

Opening the cross feed valve duly changes the value of (A:FUEL CROSS FEED, enum) to "1".
With an open cross feed valve, and an asymmetric fuel pump configuration (left on, right off and vice versa), (A:FUEL CROSS FEED, enum) will take the value of the feeding tank.
So if the above code switches both fuel selectors to "right main" (3), (A:FUEL CROSS FEED, enum) will appropriately read "3". Same for "left main" (2).
Restoring a symmetric fuel pump configuration (both on or off) will reset (A:FUEL CROSS FEED, enum) to zero.

Without the above code (i.e. active switching of the fuel selectors), (A:FUEL CROSS FEED, enum) will only read "0" or "1".


Can anybody confirm this?
If it's indeed genuine and previously undocumented, I'd welcome some more experimentation to see what other values the variable posesses.

In any case, it might come in handy to some.

* https://msdn.microsoft.com/en-us/library/cc526981.aspx#AircraftFuelData
 
Messages
2
Pretty cool s#*~t - it will be intresting to exploit! :stirthepo

Question: does that go into a Harpoon . . . . by any chance?

It' s definetly good for a lot more than 'open valve and turn on fuel pump' ;)
 

Heretic

Resource contributor
Messages
6,830
Country
germany
Pretty cool s#*~t - it will be intresting to exploit! :stirthepo

Question: does that go into a Harpoon . . . . by any chance?

It' s definetly good for a lot more than 'open valve and turn on fuel pump' ;)

With only two tanks it's hardly fit for a Harpoon. ;)
We should discuss that over at SOH in the Harpoon thread.
 
Top