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
gpnz
Posts: 3
Hello everyone!

Long time reader and user of information from these forums, now first time poster!

As I am new here I can tell you I am building a PA38 Tomahawk sim into an actual fuselage using all original flight controls and switches.

I have the sim at a flyable state and am continuing building and adding instruments from scratch. I have all switches and various other instruments working using stepper motors and the awesome mobiflight software but have come up against a problem I cant solve from searching the forums.

The picture here should explain it:
http://potts.co.nz/Files/instruments.jpg

The first 5 instruments all work fine but the last 3: Fuel quantity left and right and true airspeed show an fsuipc value but output value is 0.

I fell this is a problem with how they show decimal values for fsuipc which differ from the other instruments above.
I just cant figure out what I should be changing to correct this. I have played around with interpolation and transforms with no luck. Let me know what other info you need to understand my problem.

Note:
Am using P3D V4 and fsuipc 5.

Thanks heaps!
2018-03-26 11:22
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Welcome !



Mobiflight normaly ignores all behind the decimal Point....
So Config "RPM Gauge" is correct ..... 2354,953 is shown as 2354 .
(Note there is no rounding internal .... So 1,9999999 or 1,0000001 will be BOTH shown as 1)

Last thre configs are strange ! Normaly they should be shown as Left 1 Right 1 and Airspeed 7 ( NOT 3x Zero like in your example)

Please if Possible show me the Settings of that Configs....
You can make screenshots and link it here.... Or you send my your MCC File ( pizman@freenet.de ) ( please stay patient 1-2 weeks for reply)
Alternate we can make a Teamviewer Meeting on my free days ( Mostly Wednesday or thursday) . Just call my via Email !

Summary.... Problem normaly should be solvable.
Good Luck !
2018-03-26 13:03
Avatar
gpnz
Posts: 3
Thanks for your help.

FSUIPC configs below:





Cheers!
2018-03-27 01:22
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi again...

I not can test and confirm it at the moment ( Not on my flightsim Computer ) ....
But your settings looks wrong !

Air Speed:


iconQuote:

Offset: 02B8..... Size Byte 4.... TAS: True Air Speed, as knots * 128
Offset: 02BC.....Size Byte 4..... IAS: Indicated Air Speed, as knots * 128



At First Please confirm you need TRUE air Speed .... Mostly IAS is needed... Thats Offset 02BC !

You also got 2 Issues in config....
1. This is a INT ... Not a FLOAT ... Please Change Settings in INT
2. Wrong Transform.... Value is "Air Speed, as knots * 128" So your Transform must be $/128 NOT $*128 ( Not shure but please try out )

*****
Fuel Configs:

Offsets looks good. ( Pretty shure you need Main Tanks here)

iconQuote:

Offset: 0B7C...... Size in Byte : 4...... Fuel: left main tank level, % * 128 * 65536



You also got 2 Issues in both configs
1. This is also a INT .... Change Type from FLOAT into INT again
2. Wrong Transform.... Value is " tank level, % * 128 * 65536" So transform should be $/128/65536 Result in a value from 0-100 ( % ) . ( Please try out, too)

*****
Good Luck !
2018-03-27 12:45
Avatar
gpnz
Posts: 3
Nice! thank you so much pizman, I knew it would be something minor. I need to learn a bit more to understand how the offset addresses, bytes and types all fit in and work together.

The Piper PA-38-112 airspeed gauge is true airspeed so offset is correct and this gauge is now working well with transform of $/128.

However for fuel quantity the transform as entered $/128/65536 still showed a '0' output but when I entered $100/128/65536 it was correct and now working well. It shows on the gauge as full and if I change the quantity of the tank to 50% in the sim the gauge drops to half.

So my problem is solved and I have learnt something :thumbup:

Thanks again for your help. :)
2018-03-28 11:19
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Nice to hear.....

About the Fuel....

As i said i have not test it..... Got only the Information :" Fuel: left main tank level, % * 128 * 65536"
So $/128/65536 "should" be tank level in percent%

Without testing i not know if this is a value from 0 - 100 or if it´s a value from 0,00 ... 0,01 ... 0,02 until 1,00
As you know a value decimal will be ignored.... So Fuel Level from 1-99 % is shown as 0,xx and is always result in "0" .
With Multiply *100 for example 45% = 0,45 now shown as 45 (0,45*100) and that work !

Summary.... Knowing the System is essential needed..... But sometimes you also need testing ! FSUIPC is not perfect and some offsets are strange finaly!
Good Luck !
2018-03-28 11:47
icon