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

euroastar350

Resource contributor
Messages
863
Country
us-delaware
Hi guys,

Is there a way to load my helicopter to where it does not draw fuel from the aux fuel tank the same time the main fuel is being used? My Bell 222 has a 3 way switch (in order: auto, off, override). Do I need to create a script for this? Any help is appreciated
 
By default, fuel is automatically drawn from aux tanks before main tanks. Even setting tanks manually won't overcome this default behavior.

The only workaround for this undesirable behavior is to simply not use "main tanks" at all.

For example, the Twin Comanche has 3 tanks per engine. In order to allow each of the three tanks to be individually selected and used properly, it was necessary to fool FS by using External1 and External2 instead of main left and main right tanks:
Code:
[fuel]
//Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons),Unusable (gallons)
fuel_type = 1
number_of_tank_selectors = 2
External1 = -7.50, -3.3, -0.45, 27, 3
LeftAux = -7.92, -10.0, -0.45, 15, 0
LeftTip = -7.54, -18.0, 0.10, 15, 0
External2 = -7.50, 3.3, -0.45, 27, 3
RightAux = -7.92, 10.0, -0.45, 15, 0
RightTip = -7.54, 18.0, 0.10, 15, 0
electric_pump=2
 
By default, fuel is automatically drawn from aux tanks before main tanks.

what? what? what?
I don't concur with that Bill. The 10A Electra currently uses left aux, left main, right main and right aux. The fuel selector is setup in a way that only one tank is emptied at a time and it works just fine!

However I THINK that if you set the fuel selector to "BOTH" you are right.

Cheers,
Vitus

EDIT:
then again I'm using FSX, maybe therein lies the difference?
 
what? what? what?
I don't concur with that Bill. The 10A Electra currently uses left aux, left main, right main and right aux. The fuel selector is setup in a way that only one tank is emptied at a time and it works just fine!

However I THINK that if you set the fuel selector to "BOTH" you are right.

EDIT:
then again I'm using FSX, maybe therein lies the difference?

I don't "think," I know. After so many years I should at any rate! :D

From the time of FS95, this has been default behavior. Read the description in the FSX SDK:

FUEL_SELECTOR_LEFT Turns selector 1 to LEFT position (burns from tip then aux then main)

FUEL_SELECTOR_RIGHT Turns selector 1 to RIGHT position (burns from tip then aux then main)

Note that this behavior is set by default if -and only if- you have defined main tanks in the aircraft.cfg file. Worse, rigging the fuel system using either main left and/or main right forces the sim's logic to always load the aircraft to the ALL (or BOTH or LEFT) position, irrespective of whether you force a different position programmatically. While "visually" the selector might be on Left Tip for example, internally the sim will behave by the default rule.

I remember having a similar discussion on AVSIM back in the early 90's on this very point.

One of the two work-arounds to this rediculous bit of Microsoft/ACES illogic is to simply not USE "main tanks" at all. Then you can realistically set the engines to burn fuel from a specific tank in the set chosen.

The other work-around is to use any tanks with mains other than either tip or aux.
 
Last edited:
I see! Then the problem here is something else - the fuel selector!

My fuel selector is custom-programmed using the SET variable instead of any weird Aces logic.
Code:
19 (>K:FUEL_SELECTOR_SET)
activates the left main tank.
Code:
20 (>K:FUEL_SELECTOR_SET)
activates the right main tank.
Code:
4 (>K:FUEL_SELECTOR_SET)
activates the left aux tank.
Code:
5 (>K:FUEL_SELECTOR_SET)
activates the right aux tank.

Works fine. :cool:
 
19 & 20?
There's interesting.
I've been looking for a method of emptying the central tank first before touching any other tank.
 
Eeeks... What a dark subject.

I had these issues with the Kodiak. Wingtanks, LH and RH. The plane has two fuel selectors; LH on/off, and RH on/off.

FS is hard wired to only have one tank selector per engine programming...! So what you must do is figure a way around this. Having one fuel selector works fine, but if you have two, then you are up a creek unless you can work some very very exotic code to try to manage movements of these two selectors.


This is 'if' you were going a route with two fuel selectors and a single engine. If not, never mind.
 
I see! Then the problem here is something else - the fuel selector!

My fuel selector is custom-programmed using the SET variable instead of any weird Aces logic.

Oh, I've been using the SET variable instead of the default key_events for quite awhile myself. Even so, I've occasionally had issues with trying to use aircraft.cfg defined "main" tanks...

...often enough in fact that I've simply avoided using them entirely to completely eliminate any frustration factor. :D
 
I see! Then the problem here is something else - the fuel selector!

My fuel selector is custom-programmed using the SET variable instead of any weird Aces logic.
Code:
19 (>K:FUEL_SELECTOR_SET)
activates the left main tank.
Code:
20 (>K:FUEL_SELECTOR_SET)
activates the right main tank.
Code:
4 (>K:FUEL_SELECTOR_SET)
activates the left aux tank.
Code:
5 (>K:FUEL_SELECTOR_SET)
activates the right aux tank.

Works fine. :cool:

Since the values only go to 18... where did you get 19 and 20 from?
 
Since the values only go to 18... where did you get 19 and 20 from?

Ed,

Those values are included in the SimConnect SDK. I just checked, and FSX will accept, and return, values of 19 and 20. This using send_key_event() and pelement->source_var.var_value.e
Looks like Microsoft just didn't get around to updating gauges.h

Doug
 
Maybe they forgot to update the XML document as well then, since 18 is the highest listed there as well...

...it sure wouldn't be the first time they effed up after all!
 
I am using 2 tanks:

Center3 act as the main tank and holds 189.8 gallons of fuel
RightMain act as the aux tank and holds 32 gallons of fuel and is the first to burn off rather quickly.

So what I want to do is get the "Center3" tank to burn first and then the "RightMain"

I would have to switch tank names around for this?
 
Here are two examples of fuel tank selection for airplanes where Center tanks are used first, followed by AUX then wing etc.

The F-4 requires selection of the external centerline external tank first, followed by external wing tanks, then Internal fuel which consists of internal wing and fuselage tanks.

I used the following:
[fuel]
LeftMain=0.000, -6.000, 0.000,315.000, 0.000// 315Left Internal Wing
RightMain=0.000, 6.000, 0.000, 315.000, 0.000// 315Right Internal Wing
Center1=0.000, 0.000, 0.000, 1225.000, 0.000// 1225 Fuselage Tanks 1 to 6
Center3=0.000, 0.000, -4.100, 600.000, 0.000// Ext centerline 600
Leftaux=0.000, -11.000, -3.7500, 370.000, 0.000// Left drop 370
Rightaux=0.000, 11.000, -3.750, 370.000, 0.000//Right Drop 370

Since it has two engines I used FUEL_SELECTOR for the left and FUEL_SELECTOR2 for the right.

My sequence was Center3 for both engines until 1 gal remaining,then Leftaux for the left engine and Rightaux for the right engine, again until 1 gal remaining then ALL for both, which fed the LeftMain and Right Main (internal wings) and ended up with Center1 (fuselage tanks) plus the rmaining 1 gal in the external center and wing (aux) tanks. A three position CENTER, OUTBD and INT WING switch was linked to the code to show the sequence.
Code:
<!-- ====Transfer Centerline first then left and right aux then select All when empty===================== -->
	<Element>
		<Select>
			<Value>(A:fuel tank center3 quantity,gallons) 1 &gt; if{ 8 (&gt;K:FUEL_SELECTOR_SET) 8 (&gt;K:FUEL_SELECTOR_2_SET) } els{  (A:fuel tank left aux quantity,gallons) 1 &gt; if{ 1 (&gt;K:FUEL_SELECTOR_LEFT_AUX) } els{ 1 (&gt;K:FUEL_SELECTOR_ALL) } (A:fuel tank right aux quantity,gallons) 1 &gt; if{ 1 (&gt;K:FUEL_SELECTOR_2_RIGHT_AUX) } els{ 1 (&gt;K:FUEL_SELECTOR_2_ALL) } }</Value>
		</Select>
	</Element>


A second example is for a Hunter with four external wing tanks and an internal fuel tank that has to feed first until it is down to 79%. This airplane has a fuel proportioner system which attempts to feed fuel equally from the left and right external tanks and left and right internal tanks through, essentially, one fuel selector. If an inbalance occurs it can be corrected by turning off the fuel pump for the high side.(which will not work in FS) To model this system I had to select left and right fuel in a sequence where left was selected until the total fuel on the left was just lower than on the right, wherupon fuel was selected from the right side. This happens until the internal wings are empty and ALL is selected to finish off the fuselage plus dribbles remaining elsewhere.
[fuel]
center1=0,0,0,294.4,0 // fuselage tanks
LeftMain=0,-2,0,81.67,0 // internal wing left
RightMain=0,2,0,81.67,0 // internal wing right
Leftaux = 0.000, -9.600, -2.600, 268.33, 0.000 //Inboard external left 230 Imp gal
Rightaux = 0.000, 9.600, -2.600, 268.33, 0.000 //Inboard external right 230 Imp gal
Lefttip = -4.7500, -13.500, -2.500, 116.67, 0.000 //Outboard external left 100 Imp gal
Righttip = -4.7500, 13.500, -2.500, 116.67, 0.000 //Outboard external right 100 Imp gal
number_of_tank_selectors = 1

There was earlier code that calculated the Left_side,gallons and Right_side,gallons, but the main code was as follows:
Code:
<!-- ====Feed from center (fuselage) until 79% (or as desired) Then as long as the percent fuel in the left and right mains is greater than 1%, balance the fuel flow by switching to left or right, whichever is higher. Once the fuel in either left or right main is less than 1%, switch to ALL TANKS to drain residual external fuel and feed from the fuselage.===================== -->
	<Element>
		<Select>
			<Value>(A:fuel tank center level,percent) 79 &gt; if{ 6 (&gt;K:FUEL_SELECTOR_SET) } els{ (A:fuel tank left main level, percent) 1 &gt; s0 (A:fuel tank right main level, percent) 1 &gt; l0 &amp;&amp; if{ (L:Left_side,gallons) (L:Right_side,gallons) / 0.995 &lt; if{ 3 (&gt;K:FUEL_SELECTOR_SET) } els{ 2 (&gt;K:FUEL_SELECTOR_SET) } } els{ 1 (&gt;K:FUEL_SELECTOR_SET) } }</Value>
					</Select>
	</Element>

In the F-4 the Center tank was forced to feed first followed by the Aux tanks then ALL reverted the situation back to the FS default.
In the Hunter part of the center tank was forced to feed first and the left side or right side fuel was selected depending on which was higher. A sort of automatic crossfeed. The flow sequence essentially followed FS default except for the center being first.

Roy
 
Back
Top