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
ismaelpillado@gmail.com
Posts: 12
hello again, greetings
I already finished another panel and would like to help me to program it with Mobiflight, it is the screen change panel or MAIN PANEL DUs I have already installed the PMDG 737 NGX and use FSX, I already do the tutorials, and everything works well with the 737 Defaul. Now I would like to try all the tutorials with the PMDG including the new panel. what do I have to do to start ... from scratch with the PMDG jeje .. thank you.:confused:
use this switch 2 poles 5 shots
Question?
How can I upload pictures here?
2018-01-18 21:52
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

FIRST: Pictures are not possible directly...you need own webspace or a free "file uploader" in the web.... Then you insert the link of the picture in the Forum to show it.

About your question.....

PMDG is working with different technics like standard B737.

For INPUTS you need EventID here.... Offset Inputs are not possible for most of the functions !
A List of the EventID is for example here.... http://myhomecockpit.de/PMDG_737NGX_EVENT_IDs_SP1d.pdf

For OUTPUTS you also need a special Offset List.... This is include in the FSUIPC Folder /fsx/modules/fsuipc documents/Offsetmapping for PMDG737ngx.pdf

Important Notes.... For Outputs you must prepare your System a bit.

1: Your FSUIPC must be Up to date !
2. Your PMDG must be Up to Date ( Servicepack 1D)
3. the INI File in PMDG must be reworked like in the PMDG tutorial explaned
iconQuote:

To enable the data communication output from the PMDG aircraft, you will need to open the file
737NGX_Options.ini (located in the FSX folder PMDG\PMDG 737 NGX, and add the following lines
to the end of the file:
[SDK]
EnableDataBroadcast=1



Do that.... and now all should work fine !
Good Luck !
2018-01-18 23:54
Avatar
ismaelpillado@gmail.com
Posts: 12
I already put the SDK in the ini file. but I see the same of the 737 defaul in the Mobiflight, I do not see where to program more things, like the MPDUs. ¨ For example, all this list of EventID is huge and I understand that most of it can be programmed and that it should appear in Mobiflight to do it, am I not doing something wrong, or I have not understood?
2018-01-19 22:14
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I not understand the question....

Do you mean the Presets ???

The Preset list in Mobiflight is just like a example...This list NOT include PMDG stuff. ( And not include 95% of other functions... this are just 30-40 examples)

If you like a PMDG Input you have to make a new input Config.... Choose a Device ( For example a button on your arduino) and then you have to set EVENT ID as Input Typ..... And there you have to insert the ID.... And the Parameter youreself.... Correct ID and Parameter you can find in the linked list.

Same on Outputs....You can not use "Preset List" in Mobiflight for PMDG.... you have to find the Offset in the list i told you.....
In that list you see Typ ( for example INT, FLT, STRG) ... You see Size ( 1,2,or 4 Byte ) and you see Adress in hexadezimal. Also you see Additional Infos like Bitmask and Syntax

Here again you have to create a new OUTPUT Config.... You choose the correct Adress, Size,Type and Bitmask like shown in the List..... And then it workes.
Good Luck !
2018-01-20 00:30
Avatar
ismaelpillado@gmail.com
Posts: 12
hello again, I was able to program the DUs with the EventID you have me (thank you very much for that) of which I have some problems and doubts that I expose: the Event ID of Dus of the FO is 70072 and you have to place an On Press and a On Releasse (program it as a button) so it is programmed like this NORM: On Releasse = 1, ENG Pri: On Press = 2 (that is when turning the NORM knob to the left to activate ENG) until here works well or more or less then there are times that it does not, but when it works it works well. when I program the next turn of knob to the left PFD which is = 3 when activated, the problem is when it is deactivated because it only accepts one data and here we have two alternatives, or return to ENG or follow MFD, I programmed it with the return to ENG :confused: = 2, but this is where the problem starts and starts to fail and returns to NORM or goes to MFD etc. etc. I hope to have explained, now the questions are:
1 .- because sometimes works and sometimes not ???
2.-How do I program On Press and On Releasse or do I need something
thanks greetings
2018-02-04 00:01
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
What kind of switch do you use?

You should use a rotary switch. Here you only need the ON PRESS variant.

Statement: 2 = ENG PRI, 1 = NORM, 0 = ND as parameter for the EventID 70072.

Note: 0-1-2 is the sequence for the Capt., for the FO the sequence is reverse.

So you transmit on every switch position another parameter 2-1-0 so that you need no ON RELEASE.

These hints can be found at the offset 0x654E (page 9 Forward-Panel - offset-mapping for PMDG B737NGX)
Grüße,
Stephan (Time: UTC+2)
2018-02-04 00:30
Avatar
ismaelpillado@gmail.com
Posts: 12
Thanks Sthepan, I use a rotary switch of 10 shots 2 poles, I check it and I warn you, now I am also programming the panel of the Auto Brakes, in this the On Release is not used either?
Here I leave a link of the photos of what I've been building panels so far ... greetings
https://www.facebook.com/media/set/?set=a.10156125587628599.1073741827.783003598&type=3
2018-02-08 01:01
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi my friend !

At first for better understanding ...
I not know what you mean with ....
iconismaelpillado@gmail.com:

I use a rotary switch of 10 shots 2 poles,



Maby you can add a photo or a datasheed here. (Or on your facebook page) is this a 10 Position switch ??

Normlay there exist 2 kind of Rotary switches...
A ) Grey Code.... Mostly with 5 Pins ( 4 Data Line and 1 GRD) .... THAT are NOT compatible with Mobiflight !
B ) Direct controlled roatarys.... Here you got normaly 1 GRD and 1 pin for each detent... a 12 Position Rotary so get 13 Pins.
( Mostly this basic setup is used for all Sub Categorys... a 4 Position Rotary of same manifactor got often 13 Pins, too... There Always 3 Pins are bridged... Pin 1,5,9 are Detent A ... 2,6,10 Detent B and so on)

Now important for us..... This Roatary switches work simmular like a latching ON/OFF Swtich.... And Mobiflight see and controll it like a latching ON/OFF "Button", too.
So a 12 Position Roatary Switch is the SAME like 12 Pushbuttpons in a row..... If you like to use all 12 Positions then you need to set it with 12 Wires ( and 1 GRD) to 12 Different Pins on the Arduino ( and 1x GRD) ..... You have to create 12 Devices ( All are type "Button" ). Workflow is same like you set 12 single Pushbuttons.

Now it´s simply to understand.
If your switch is in Position "5" for example then its the same if Pushbutton 5 is pressed ....
If you turn your switch from "5" to "6" then in this moment Switch 5 is released and short later switch 6 is pressed.

Thats why you not need Release Commands..... Cause if you release it the System can´t know if you turn it LEFT or RIGHT.... So we use ON PRESS here.... If you turn your switch to position X then the ON PRESS of this Detent execute the Command you like to SET with this Input.

The ON RELEASE is only need if you make more detailed things thats need improvisional solutions like a Reset of a Servo Motor.... Or if you need Double Inputs.

*****

Last Note:
I see in your Facebookpage a Video from 12 hrs ago..... There you have "missing Inputs" .
Pretty shure you have the "Logging Debug BUG" like me....
Please enable the "Logging Mode" ( In Mobiflight/Settings ) and use Typ: DEBUG .
Then the problems should solved... BUT Then maby the Encoders are pretty slow ( Some people report)

Apology fo that BUG.... But we not be able to solve it at the moment. That happend only at 10-20 % of User Systems !
Good Luck !
2018-02-08 18:44
Avatar
ismaelpillado@gmail.com
Posts: 12
I have already put the image on the Face of the switch that I am using, I have already done as you indicated and the operation is improved .. thank you, we go ahead
2018-02-13 21:51
icon