I'm a newbie on the forum.
I'm developing a flight simulator for a two seat helicopter, using Simulink (Matlab2014) for generating the FDM and FlightGear for the Scenery (version 2..
All is working well apart from the following fact.
I did not obtain the fuel inputs from Simulink to display on the FG Scenery (particualry fuel pressure and fuel level).
If you check the page https://www.mathworks.com/help/aeroblks ... tgear.html, you can find the following table referred to the Simulink block:
Signal Group 4: Engine/Fuel Inputs
Name Units Type Width Description
num_engines — uint32 1 Number of engines
eng_state — uint32 4 Engine state (off, cranking, running)
rpm rev/min single 4 Engine RPM
fuel_flow gal/hour single 4 Fuel flow
fuel_px psi single 4 Fuel pressure
egt deg F single 4 Exhaust gas temperature
cht deg F single 4 Cylinder head temperature
mp_osi psi single 4 Manifold pressure
tit deg F single 4 Turbine inlet temperature
oil_temp deg F single 4 Oil temperature
oil_px psi single 4 Oil pressure
num_tanks — uint32 1 Number of fuel tanks
fuel_quantity gal single 4 Fuel quantity per tank
The input for fuel pressure and fuel level are respectively fuel_px (psi unit) and fuel quantity (0 to 1 fraction of tank).
In my model I use only 1 tank and I have activated it with the num_tanks variable.
Searching in other aircraft model (R44 helicopter for example) and the wiki, I did find the following properties:
- /calibration/fuel/tank[0]/level-norm for fuel qantity.
- /engines/engine[0]/fuel-pressure-psi for fuel pressure
Unfortunately, both of them do not work. I receive no fuel information in FG on my simulated avionics.
To make a check of the Simulink code, I have connected the fuel pressure and fuel quantity signals to the oil pressure input oil_px.
In that case, using the property /engines/engine[0]/oil-pressure-psi for the 2 signals, I can receive them either on my simulated avionics.
I thought that the problem could reside in the property names of the fuel pressure and fuel quantity.
I've looked a bit on the web and the wiki, and appeared that could exist some other property for the same fuel quantites.
I've tried other possible solutions but I did find nothing that worked.
Could someone give me a hint for this issue?
Thanks in advance
All the Best
GF