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
pierclav
From: Bangkok VTBD/VTBS
Posts: 30
Supporter
Configure the offset with the required mask in MobiFlight:

0 Navigation
1 Beacon
2 Landing
3 Taxi
4 Strobes
5 Instruments
6 Recognition
7 Wing
8 Logo
9 Cabin

Assign the corresponding bit offset in Prosim737:

https://www.dropbox.com/s/tj9xl0jtpxahltn/lights.jpg?dl=0:)

Works like a charm!

Pierre
2016-01-28 06:10
Avatar
LAKY911
Posts: 10
Can I have a question? Why do you use once 16 bit U and once 16 bit S? What is the diference there?
[Last edited by LAKY911, 2016-01-30 10:09]
Best regards,

Lukas
2016-01-29 23:30
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
U means unsigned whereas S means signed integer.
Signed integers can be negative.

A byte is 8 bits, so 2^8=256 values available. A signed byte goes from -127 to 127 and the unsigned byte from 0 to 255.

Similar logic applies to 2 byte, 4 byte etc.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2016-01-30 01:02
Avatar
LAKY911
Posts: 10
Thank you Sebastian for great explanation!!
But I still don't understand why Pierre used once S and once U.
Best regards,

Lukas
2016-01-30 08:34
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Hi Lukas,

you are right, now that I see it on the screenshot. I think that it is not on purpose. Actually it would be best to use only 8bit (1 byte). If you use bitwise comparison it actually makes no difference whether to use signed or unsigned.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2016-01-30 09:09
Avatar
pierclav
From: Bangkok VTBD/VTBS
Posts: 30
Supporter
Lukas,

In computing, signedness is a property of data types representing numbers in computer programs. A numeric variable is signed if it can represent both positive and negative numbers, and unsigned if it can only represent non-negative numbers (zero or positive numbers).

It was an oversight from my part. In this case, the value will be a 1 or a 0. The signed or unsigned settings will both work as the value of this particular offset will never be negative. But if we go by the book, these offsets should be set to unsigned.

In other cases for example on the trim indicator, the offset value will vary from -16383 to +16383 so the offset parameter must be set to signed. Unsigned will not work as negative values will not be read.

Thank you for pointing this out.

Pierre
2016-01-30 09:22
Avatar
LAKY911
Posts: 10
Hi Sebastian and Pierre,

Thank you for explanation of this problem. Now I understand it well.
Best regards,

Lukas
2016-01-30 10:08
Avatar
LAKY911
Posts: 10
Hi all,
today I tried MF with ProSim via FSUIPC. It's working good, but I see quite a big delay on Outputs, but not on inputs. Do you know what could cause this? FSUIPC? Arduino? MF?
When I compare it to Arduino boards comunicating straight to Prosim via COM port, it's a big delay.

Thanks for help.
Best regards,

Lukas
2016-01-30 17:17
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Try to change the FSUIPC poll settings to a smaller interval - it might help.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2016-01-30 17:35
Avatar
LAKY911
Posts: 10
It helped a little. Thank you!
Best regards,

Lukas
2016-01-30 20:24
Avatar
Bibi40k
Posts: 1
Hi and thanks for sharing your tips

Could you please help me using MobiFlight + ArduinoMega with ProSim 737 ?

I have a rotary encoder, i configured it, it works in FSX but in ProSim it does nothing.

Thank you
2017-02-19 13:50
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Bibi

As explaned here ( and in other topics) Prsosim not use the Standard Offsets of FSUIPC.

But it look like it got a section where you can define " function X should set to Offset Y "
If i understand manual correct this workes for in and outputs ((please a other ProSim User can confirm this statement)
Good Luck !
2017-02-20 19:36
icon