MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
Mushood
Posts: 7
Hello
I am having a very basic problem in my project. I have configured servo based gauges with mobiflight connector but i could not find engine parameters presets in mobiflight connector. Can "FSUIPC offset" be used to add engine parameters of aircraft. plz help.
I want to read engine parameters from FSX and then indicate on servo based gauges.
i will be very obliged if someone can help me.
2017-10-03 06:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi.
Welcome to Mobiflight.

The Preset List is only a little part of the available Offsets.... See it like a simple example to show how configs should look like. ( Sorry, but Sebastian never push this Preset List forward.... so it´s still in the status like at beginning)

You can use every FSUIPC Offset if you simply do the config yourself ( Enter OffsetAdress, Type and Size)
You find a full List of FSUIPC Offsets in your ***/FSX/Modules/ folder ( or in the documents subfolder there). File called "FSUIPC4 Offset Status.PDF"

If you need more help.... Simply ask here and request a specific function.... So i can look for the right offset.
Good Luck !
2017-10-03 12:18
Avatar
Mushood
Posts: 7
Thank you very much pizman82 I exactly need this stuff. But in this list variable type of some offsets are not defined. Can you please help I specifically need turbine engine data.
2017-10-04 15:57
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
Sorry i not understand currently what exactly you need.

Please look in the Offset List ( I Use current List for Newest FSUIPC..... Maby a patch to UptoDate Version is needed if you use a FSUIPC that is verry old)
In my list the Engine Data (For Engine 1) is listet on Offset 088C ( and all the Follows 152 Byte)
In next Segemnts there are the Data for Engine 2,3, and 4.

There you find all the single offsets for the functions.... For Examle Fuel Flow, Teperatures, Pressure, RMP and so on.
"Normaly" you should find there ALL you need.... BUT... get shure THIS is for Standard Aircrafts.... AddOns can use diferent Data!
Good Luck !
2017-10-04 18:17
Avatar
Mushood
Posts: 7
Thankyou very much for your assistance so far.
I am using following offsets with FSUIPC4 and FSX. But the guages are not showing this data....in some cases mobiflight connector show output data but gauges dont show any fluctuation.

3B58 8 General engine 1 oil temperature in degrees Rankine, as a double (FLOAT64).

3B60 8 General engine 1 oil pressure in lbs/sqft, as a double (FLOAT64). Divide by 144 for PSI.


i am using Cessna aircraft in FSX.
2017-10-09 17:02
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Mushood,

why don't you take this ones:

08B8 2 Engine 1 Oil temperature, 16384 = 140 C
08BA 2 Engine 1 Oil pressure, 16384 = 55 psi. Note that in some aircraft (eg the B777) this can exceed the 16-bit capacity of this location. FSUIPC limits it to fit, i.e.65535 = 220 psi
Grüße,
Stephan (Time: UTC+2)
2017-10-09 19:31
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I not work with stephans offsets, but they look good, too,

Your problem is you not use right settings.....

For a detailed guide i need to test this out finaly..... But i´m pretty shure your offsets support correct Data.
So if gauge is not working ok you have wrong settings in the Config !

Please note.... FSUIPC not support 100% working data.... YOU have to bring the raw Data in a Format thet is need for your gauge.
In that case i would say it´s a Decimal Value ( it´s a FLT64.... Mostly this are Decimals )
A Gauge not work with Decimal Values.

So you have to Multiply the Raw data and maby you need to ROUND the result..... Finaly Your gauge needs a Value tah only include Full Numbers !
Good Luck !
2017-10-10 12:08
Avatar
Mushood
Posts: 7
Hi pizman82
thanks alot for help.

you mean i need to use transform in order to get right data on the guage. can u plz make me understand how to use transform in mobiflight connector.
2017-10-11 09:58
Avatar
Mushood
Posts: 7
Hi StephanHo
Thank you for providing assistance. I have tried offsets provided by you. I am receiving output value but that value is so small to be shown on the gauge. Facing the same problem as earlier.

Can I use transform for multiplying that small value with a larger integer and get a value which can be shown on the gauge.
I will be very obliged if u can help.
i am basically working with MI-17 central panel gauges which includes engine 1 oil temp, engine 2 oil temp, oil pressure and EGT gauge and more.
2017-10-11 13:08
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Mushood,

your are on the right way, if you try to use the TRANSFORM-input.
Begin at first with $*10 and look, what happend. If it works, you're ready, if not, try $*100 and look again, what happend
If 100 is a too small value, try $*1000

If your output is too large, then enter the interpolation area and adapt the output to your gauge-range.
Interpolation means, that if your input is 0 the output has also to be 0
Input 30 is output i.e. 10
Input 50 is output i.e. 20 and so on.
With the input value you set an equivalent output which matches to your gauge.
This way is valid for all the way for oil temp1+2, pressure and EGT.

As a continuation: if i.e. the way your pointer has to run is i.e. 270° then you should divide the max value of the range you got as value from your simulation by 270. This is the max input value for your interpolation table. If you have another way lenght of your pointer i.e. 200 or 300 degrees then take this as max. value.
The intermediate values you then have to determine by trial or you measure the grades, which are outgoing from 0, to put back.
I think that is the easiest way to go.
If you drive your servos without a transmission, I think the max value should be 180° otherwise take this value.
If you have a servo without end stop you should avoid an angle of more than 360° or you should tourn over the 0
Hope, this helps.
Please report your experiences
Grüße,
Stephan (Time: UTC+2)
2017-10-11 19:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Stephan tell you the correct things.... but maby this was "to much" for you....
I will recommend to split this in 2 parts for the beginning..... ( I still make this until today)

1. Part... Transform the raw Data into a "good" value.

Here please simply create a config (Without Servo or Stepper as device to protect the motor from demmage)
Read the needed offset like describe in the FSUIPC Lists.
Now Start your Simulator and Mobiflight.
You see in the Mobiflight Window now in this Config the 2 Values " FSUIPC Value" and "Mobifligh Value" .
Now please change the function in the Simulator.... For Example the Oil Pressure by starting a engine or by increase the Power.

NOW Observe what happens with the shown FSUIPC Value in Mobiflight.

Importnat is for us.... Mobiflight work with full numbers for Outputs..... A motor is here basicly the same like a Display....
A Display can show 0,1,2,3 and so on.... But no Decimal. That means a Value of 0,345 is shown as 0 .... A Value of 0,99999 is shown also as 0.
Same with a Motor.... A Motor only can move by 1 step if the value increase by a full number.....

If you got for example a Value that have a Original Range from 0,01 until 1,00 it have in Sim 100 Steps ( Increase/Decrease by 0,01) BUT.... As i said. Mobiflight only see 0Zero from 0,01 until 0,99 and 1 for all Values between 1,01 and 1,99.

NOW please use a Multiply... Activate Transform and say $*10
You will see the "Output Value" is now different to the "FSUIPC Value" in the Mobiflight field.... Simply ignore that it´s already a Decimal Value.... But just look how many steps it got now .....
For Example again the Value from above with is working from 0,01-1,00 With $*10 it is now from 0,1 until 10 . That means we not see a change betwen 0,1 and 0,9 again.... BUT We have now 10 Output Values that can be shown on a gauge.

Please simply try out some other Multiplys like $*100 and so on until you get a output Value that is good for your gauge.


2. Part... Bring the now "good" value to the Motor.

Here Stephan already said everything.... Additional that is shown in multiple Topics here in Board,
If Value is Linear you can simply do this in the Servo or Stepper settings
If Value is non Linear you need the Interpolation field.
Good Luck !
2017-10-12 07:27
icon