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

XMLTOOLS for FSX and P3D updates

Heretic

Resource contributor
Messages
6,830
Country
germany
They are both continually updated by the sim; they will operate in the same way as you described in post #8.

Well, yes. I, however, interpreted Keke's question as something more general.
 

Kekelekou

Resource contributor
Messages
226
Country
france
Yep, Heretic, I was looking for a way to control the engine RPM, so your suggestions could have been interesting too.
Fuel flow has the main advantage of being hidden under FSX's hood, so no noticeable woobling. And it also makes rough running /fuel starvation controlable with one single variable.
 

Heretic

Resource contributor
Messages
6,830
Country
germany
Note, that the fuel flow variable does not accept any value. Zero works for obvious reasons, but higher than that and it's trial&error time. 50 will have an effect, but upping this to 60 won't produce any different result.
 
Last edited:

Kekelekou

Resource contributor
Messages
226
Country
france
Well, that's a bit of a bummer... I wanted to slave fuel flow to a RPM target (increase FF if below target, reduce it if above), but I am afraid I won't get the desired effect if FF can not set in a accurate enough way.
I'll test and report anyway.
 
Last edited:

Roy Holmes

Resource contributor
Messages
1,803
Country
us-virginia
You need to be more specific about whether you are talking about turbine or recip engines. The engine simulation is not the same.

For turbines, the eng fuel flow is not settable, for recip it is: RECIP ENG FUEL FLOW:index.

For turbines engine RPM is indirectly settable. You would set CN2 TURB ENG CORRECTED N2:index and the RPM is governed by the aircraft.cfg as rated_N2_rpm. For recips it is not settable. RPM is varied by adjusting engine friction in the air file, adjusting with the friction scalars in the aircraft.cfg or using the engine controls.

Aircraft_Sim_Tech_Zyskowski.pdf has a section describing how the two types of engine are simulated.
Roy
 

Kekelekou

Resource contributor
Messages
226
Country
france
I'm working on the BN-2 Islander, so the engine is the good ol' Lycoming O540. I am quite glad that fuel flow is settable for recip engines (insert huge sigh of relief here). Thanks Roy for your input!
 

Heretic

Resource contributor
Messages
6,830
Country
germany
For turbines, the eng fuel flow is not settable

From the respective line in the SDK doc:

TURB ENG CORRECTED FF:index Corrected fuel flow Pounds per hour Y -


Tried, tested and confirmed. (It's just not accurate.)
 

Roy Holmes

Resource contributor
Messages
1,803
Country
us-virginia
TURB ENG CORRECTED FF:index Corrected fuel flow Pounds per hour Y
The corrected FF is only accurate under ISA conditions at sea level. As you increase altitude it increases for example so it may do what you want but as you said it is not accurate.
You can get from corrected fuel flow values to real fuel flow values by multiplying by delta2 which is atmospheric pressure ratio times (1+0.2*(M^2))^3.5 where M=Mach. Delta2 is also called total Air pressure ratio.
Roy
 

Heretic

Resource contributor
Messages
6,830
Country
germany
The corrected FF is only accurate under ISA conditions at sea level. As you increase altitude it increases for example so it may do what you want but as you said it is not accurate.
You can get from corrected fuel flow values to real fuel flow values by multiplying by delta2 which is atmospheric pressure ratio times (1+0.2*(M^2))^3.5 where M=Mach. Delta2 is also called total Air pressure ratio.

All I'm using corrected FF for is getting rid of that awful turboprop startup surge (and simulate a hung start when set to zero or a small value).
It's the only way to do this when you don't have any possibility for masking startup surges or else in the engine gauge code itself.
"Regular" fuel flow (after start) naturally has to be obtained the normal way (table 1506 * TSFC).
 

Roy Holmes

Resource contributor
Messages
1,803
Country
us-virginia
All I'm using corrected FF for is getting rid of that awful turboprop startup surge (and simulate a hung start when set to zero or a small value).
It's the only way to do this when you don't have any possibility for masking startup surges or else in the engine gauge code itself.
"Regular" fuel flow (after start) naturally has to be obtained the normal way (table 1506 * TSFC).

It is an interesting idea and glad it works. The turboprop engine in the sim does not have a TSFC mainly because its Thrust is insignificant and it uses power specific fuel consumption because brake power is the usual measure of power produced.
The idea is somewhat similar to what 1505 supposedly does for a pure turbine.
The turbine tables for a turboprop like 1503 and 1504 use CN1 for throttle position because CN2 is usually 100% at all times when running. However the fuel does go to the CN2 engine section, of course, so presumably the surge comes from CN1 instability since torque is a CN1 function. The turboprop air file has no 1502, because there is no direct link between CN1 and CN2, as well as having no 1505.
I guess the question is then are you seeing a N2 surge or a N1 surge during start.
Roy
 

Heretic

Resource contributor
Messages
6,830
Country
germany
It's a N1 surge, but what's a mystery, is why it runs away in the first place and how it's affecting some aircraft but not others.
 

Kekelekou

Resource contributor
Messages
226
Country
france
Well, I have just given a try at the fuel flow management through a C:SIMVARS, to no avail. :(

The code reads as follows :

Code:
<Gauge Name="doorlockhorn" Version="1.2">
<Update Frequency="18"/>
  <Element>
      <Select>
         <Value>
     
       0 (>C:SIMVARS:RECIP ENG FUEL FLOW:1, Pounds per hour)
       75 (>C:SIMVARS:Trailing Edge Flaps Left Percent, precent)
       (C:SIMVARS:RECIP ENG FUEL FLOW:1, Pounds per hour) (>L:Conso, number)

      </Value>
    </Select>
 </Element>
</Gauge>

XMLTools runs fine, since the left flap is set to 75% as expected.
LINDA confirms that the value of L:Conso is 0.
But the engine is still running as smoothly as if this code didn't exist at all.
I also tried 50 and 200 as C:SIMVARS FF values, no luck.
I am quite puzzled...
 

ddawson

Resource contributor
Messages
862
Country
canada
Well, I have just given a try at the fuel flow management through a C:SIMVARS, to no avail. :(
...
XMLTools runs fine, since the left flap is set to 75% as expected.
LINDA confirms that the value of L:Conso is 0.
But the engine is still running as smoothly as if this code didn't exist at all.
I also tried 50 and 200 as C:SIMVARS FF values, no luck.
I am quite puzzled...
I think you will have a lot more luck forcing the throttle position than you will overriding calculated engine variables.

Doug
 

Kekelekou

Resource contributor
Messages
226
Country
france
I’ll control the throttle position when all other options will have failed : auto-moving levers would look a bit odd, and i’d prefer to keep the throttle position as the desired power input, and restrict the RPM further down the line.
Controlling manifold pressure is probably going to be my last attempt.
 

Kekelekou

Resource contributor
Messages
226
Country
france
Here is my last test report:
- fuel flow : any value set with the C:SIMVARS: has no effect on the engine
- manifold pressure : RPM control is possible, but the crazy needle symptom shows up and the plane vibrates a lot
- prop pitch : works ok, but the lever movement is a bit of an immersion killer
- throttle position : same as prop pitch

So in the end, the best results are yielded with the variables that don’t need XMLTools to be set (keyevents available).
The lack of Hold function and non-settable variable (and lack of proficiency from the gauge writer, ie me) make XMLTools pretty much useless for my specific RPM control gauge.
That’s a pity because it really sounded great.
 
Top