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! 

icon
Avatar
horenh
Posts: 5
I use Mobiflight as new user. The sim that i use is P3D-V3.4 and like to make a overhead panel for the PMDG-800.
I have a few switches connected to a Arduino mega 2560 for the Lights, bottem row switches off the overhead panel.
Before that i have executed the 2 examples of a LED and Switch.
After programming the Functions off the switches are the working in the B58 standard plane.
But the PMDG has no result, nothing happend.
I have read on the forum to add a rule to the file 737NGX_Options.ini:
[SDK]
EnableDataBroadcast=1
Still no result.
The question now is what i doing wrong or is there something else that needs to be changed

with regards
Henny
2019-03-26 15:35
Avatar
StephanHo
From: EDDG, Germany
Posts: 1260
Supporter
Hi Henny,

welcome to Mobiflight!

You have to note, that the standard airplanes of P3D and the PMDG airplanes mostly uses different Offsets and/or EventIDs.

So if you config the B58 with several switches and LEDs they use other ones than the PMDG machines.

You can fly both airplanes with the same hardware but you need two different configuration files in Mobiflght for them without changing the hardware.

If you want to fly the B58 you have to load i.e. the B58.mcc file and if you want to fly the PMDG B737-800 you have to load the 737.mcc file.

The adresses (Offsets and EventIDs) for the PMDG machines you find in your P3D root folder and there in \Modules\FSUIPC Documents

Example. For the B58 you use the EventID 65752 for the parking brake, in PMDG you have to use the EventID 70325. The LED for the parking brake of the B58 is the Offset 0x0BC8 in PMDG it is the Offset 0x65A7.

So you have to create an empty mcc file (menu. FILE NEW) and to make new configs for the PMDG. You can use the same devices on your installed MEGA(s) if they are installed in both airplanes.
Grüße,
Stephan
2019-03-26 16:04
Avatar
horenh
Posts: 5
Thanks for the answer. I tried for the taxi light. Unfortunately it soesn't worl yet
I did this:
offset Size Mask value press value reelase
B58 0xODOC 2 0x08 1 0 is working
PMDG 737 0x64FA 1 0x08 1 0 is not working

The offset fot the PMDG ia according the mentioned list
I'm trying to understand how to program it.
What is wrong

Henny
2019-03-28 19:03
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2464
Supporter
In PMDG the OFFSET is just for Outputs.
Inputs are done via EVENT ID .... ( By the way... in FSX and P3D also for standard Aircrafts EventID are much more profitabel as Offset Inputs.)

Check this List.... http://myhomecockpit.de/PMDG_737NGX_EVENT_IDs_SP1d.pdf

Use in Input the Typ: "EventID"

The Id´s are in the List.... the Parameter are 0/1 for ON/OFF Switches . 0,1,2,3, and so on for Multi Position Switches.
For Encoders you need the Mouse Wheel UP DOWN parameters ( Last Page of List) ... For Momenatry Buttons a Leftclick is mostly the correct technic ( Also on last page)

Simply Rule for Parameters.... Get into the Virtual cockpit and use the Button/Switch/Encoder etc you like to programm with your mouse.
That action you can use here ( e.g. a left click) is also correct if you use the same Parameter in Mobiflight. EventID is the "Function" Parameter is the Mouse Action you like to emulate.
Only the Switches mostly work also with ON = 1 OFF = 0 ..... Or as i said a 4 Position switch got parameter 0 or 1 or 2 or 3 whatever position you need.
Good Luck !
2019-03-28 21:58
Avatar
horenh
Posts: 5
Thank you for your answer.
I made a test panel in the last days, with different types off switches en LED (landing Light).
Unfortunately i still have a problem with the 4-position switch before the engine start.
I have made 4 role's, one for each position, and give them de values:
On Off or On Off
Gnd 1 / 0 1 / 0
Off 2 / 0 2 / 1
Cont 3 / 0 3 / 2
Flight 4 / 0 3 / 3

Both Config are not working.

So what do i wrong or I don't understand
2019-04-15 19:02
Avatar
StephanHo
From: EDDG, Germany
Posts: 1260
Supporter
Hi henny,

the 4-position-switch you mean is a rotary switch with a switch angle of 45°.
When using a rotary switch an on-off-position is not neccessary to be declared cause if you switch you automatically switch a position off and at the same moment you switch a new position on.
While using the PMDG B737NGX you need for every Position of the rotary switch a config and use the following EventID with their parameters:

Left Engine Start (1)
EventID 69751
GRD Param 0
OFF Param 1
CONT Param 2
FLT Param 3

Right Engine Start (2)
EventID 69753
GRD Param 0
OFF Param 1
CONT Param 2
FLT Param 3

Please report your experiences.
Grüße,
Stephan
2019-04-15 19:44
Avatar
McFly
Posts: 293
Supporter
Hi,
just an advise: For inputs like switches use a Generic I/O Card like LeoBodnar BBI64 and LINDA. Its a really quick solution. All inputs available.
For LED and Gauges use Mobiflight and a Arduino Mega. All Offsets available.
2019-04-15 20:39
Avatar
horenh
Posts: 5
StephanHo

I tested it and it is working
Thanx

Henny
2019-04-15 21:52
icon