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

FSXA Another Fuel Project

Messages
22
Country
us-texas
Hello all,

I am new to XML and gauge programming. After reading the XML Gauge programming Guide many times, read every gauge thread here several times, read the SDK and studied it for the past 6 months, played with Doug Dawson's fuel dump gauge, hacked many fuel systems trying to understand xml... Not much success. I am a slow learner (68 years old) who has bitten off more than he can chew and the XML Polish Notation is just about to push me over the cliff.

Now for the fuel system I am trying to re-create: RF-101C Voodoo (worked on the Voodoo in Vietnam in '69-'70). The system has a total of 9 fuel tanks-cells of which 5 are internal center cells with the #2 Cell being the ONLY feed Cell for both engines, via FWD and AFT booster pumps (both located in the #2 cell) to a manifold, which feeds the 2 engines electric and mechanical fuel pumps. Cell's #1, #4 and #5 are cells which transfer fuel via gravity or transfer pumps to the #2 feed cell and the #3 cell transfers its fuel to the #2 cell only by gravity.

There are also 2 internal wing tanks and 2 external fuselage mounted drop tanks. The 2 internal wing tanks (L & R) are both controlled by a single common transfer toggle switch on/off and pressured up by compressor bleed air to transfer their fuel to the #2 fuel Cell. The 2 external fuselage drop tanks each have their own individual transfer on/off toggle switches which control their fuel transfer to the #2 fuel cell also via compressor bleed air.

I have all of the panel graphics, switches assembled and animated with workable dummy code, some of the SDK toggles which work, #2 fuel selector feed to both engins working and think I am ready to try and tie it all together with actual working XML. I will take it one step - question at a time as I think that is all I can handle. Oh, and by the way - programmer pseudo code does nothing but confuse me. I once worked on a small piece of code for 2 weeks and it finally came down to white space!

Question: How do I transfer the fuel from the two internal wing tanks to the #2 Cell via the operation of a single/common toggle switch for both tanks?

Aircraft.cfg
[fuel]
//Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons), Unusable (gallons)
//RF-101C: Internal usable: 2,249gal / 14,620 lbs + external: 900gal / 5850 lbs = Total A/C Fuel 3,149gal / 20,470 lbs

fuel_type = 2
number_of_tank_selectors = 1 //should = # of engines RF-101C uses ONLY 1
electric_pump = 1 //0=false & 1=true //RF-101C has 2 elec boost pumps FWD & AFT that feed from Cell #2 to Engine Fuel Manifold, 3 Elect Transfer
engine_driven_pump= 1 //0=no & 1=yes RF-101C - each engine has 3 Mechanical pumps

////RF-101C Fuel Cells/Tanks
Center1 = 1, 0.0, 1, 769, 0 //#1 internal CENTER1 fuel cell - USE 769gal/4999 lb - Full 769gal/4999 lb
Center2 = 0, 0.0, 1, 430, 0 //#2 internal CENTER2 fuel cell - USE 430gal/2795 lb - Full 430gal/2795 lb
Center3 = -1, 0.0, 1, 234, 2 //#3 internal CENTER3 fuel cell - USE 234gal/1508 lb - Full 234gal/1521 lb
Leftmain = -2, 0.0, 1, 340, 2 //#4 internal center fuel cell - USE 338gal/2197 lb - Full 340gal/2210 lb
Rightmain = -3, 0.0, 1, 311, 1 //#5 internal center fuel cell - USE 310gal/2015 lb - Full 311gal/2021 lb

//Internal Wing
Leftaux = 0, -4.5, -1, 85, 1 //Left internal wing tank - USE 85gal/553 lb - Full 86gal/559 lb
Rightaux = 0, 4.5, -1, 85, 1 //Right internal wing tank - USE 85gal/553 lb - Full 86gal/559 lb

//External Fuselage
External1 = 0, -2.0, -2, 450, 0 //Left External fuselage drop tank - USE 450gal/2925 lb - Full 450gal/2925 lb
External2 = 0, 2.0, -2, 450, 0 //Right External fuselage drop tank - USE 450gal/2925 lb - Full 450gal/2925 lb

fuel_dump_rate = 0.015 //Percent of max quantity per second


Sorry for being so long winded but I am trying to be as precise as I can. I worked on the camera systems on this bird while serving with the USAF in Vietnam and it became my all time favorite of 50 years ago.

Thanks for listening and any help provided will be greatly appreciated.

Wayne
 
Each fuel selector can only draw from one tank at a time (even if set to "all"), but you can set up two fuel selectors in the aircraft.cfg and have one draw from the left wing or drop tank and the other from the right wing or drop tank when the switch is thrown. This is the easiest solution, but will, in some cases, leave you with a partially filled center tank since it won't obviously be refilled.

Simulating fuel transfer from tank to tank requires either XMLTools or Doug Dawson's fuel dump gauge with appropriate code to refill the center tank if it's not filled.
 
Back
Top