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
JSByron
Posts: 3
Hi, everyone.

I'm very new to interfacing hardware with P3D aeroplanes, but I (think) I understand the basics. I wanted to confirm something before committing to buying hardware and attempting to program its use.

I'm currently using the Maddog MD80 add-on by Leonardo. I'd like to control some of its functions, which the developer has made public in a list of events/commands, e.g.

Command | DEC | HEX
________________________
KEY ASSUMED TEMP SET | 69738 | 0x1106A
KEY FIRE BELL OFF SET | 69736 | 0x11068

I'd like to assign hardware actions, e.g. switches, buttons presses etc to trigger these via MobiFlight. My query is this: the offsets that the developer has published, e.g. 0x1106A
are beyond the range of user-defined FSUIPC offsets, which is 0x66C0 to 0x66FF. Can I use the offsets as published by the developer, e.g. 0x1106A, directly in MobiFlight -- or must I choose a free FSUIPC offset, in between 0x66C0 to 0x66FF, use that offset in MobiFlight and then redirect the event from the user-defined FSUIPC offset to the 'native' Maddog offset via a LUA script in FSUIPC?

Thank you.

James.
2021-06-29 18:41
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Here there is a missunderstanding.....

These are EVENT ID´s .... So INPUT Only predefined Events !
Its confusing.... Cause they tell you both numbers.....

Decimal "69738" is the same like Hexadecimal "0x1106A"
Just Math !

Means... This look like Maddog offert "EventID´s" via FSUIPC.... So this will work.
( In easy words... This HexaCode looks like a Offset... But it is not... FSUIPC Offsets are from 0000-FFFF in base version !)
More interesting is... Does they support "outputs" ??? So e.g. Data to controll a LED or a Display.


If i remember right here in the past "Maddog" not do this and you need some LUA Code to get this working..... But INPUTS ( alsong on that list) will be compatible with Mobiflight DIRECT!
Good Luck !
2021-06-29 23:50
Avatar
JSByron
Posts: 3
That makes sense -- thank you very much.

So I could trigger those Event IDs from the MobiFlight application directly (which will communicate with FSUIPC in the background?), without having to additionally/manually do anything in FSUIPC myself?

Maddog developer has only published input data, not output. I'd have to use LUA/FSUIPC user-defined offsets to see its internal LVars, to drive outputs.

James.
2021-06-30 13:23
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
100% Correct!

For Input this work directly.... No own code needed if the elements are on that list.
For sure.... FSUIPC must be installed ! ( Free Version )

For Outputs as you said.... Lua Code that transfer Data from Lvar to Offset. Here i´m not sure.... Maybe you need the Reg Version from FSUIPC to build Lua Stuff. May not, and the Free Version is also fine here . I don´t know.

In the far future maybe we can provide you a system within MF to do this. In FS2020 we still be able to read Lvars ( without FSUIPC) directly in MF..... But this is not compatible to P3D and for sure we not work on that at the moment in case FS2020 got Top Priority at the moment!. Whatever Sebastian said "maybe" he can convert this tool also to P3D in the Future!.
Good Luck !
2021-06-30 14:30
Avatar
JSByron
Posts: 3
Thank you for your help. I have some electronics being delivered tomorrow (and a paid-for FSUIPC), so will try this out!

James.
2021-07-01 22:56
icon