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
achaverr
Posts: 6
Hi, please your help i don´t found the xpuipc offset for Annunciator Switch test

My conf

x plane 11
Plane Cessna 172

thanks
2019-04-23 03:14
Avatar
DocMoebiuz
Moderator
From: NW of KPWK, United States
Posts: 1363
You have to create your own config for XPUIPC and add it to the xpuipc.cfg in the plugins folder.

I tried to find the right DataRef but was not successful on first try. Let me check later, or you can also try if you can find the dataref for the Annunciator Test Switch. Once we got it, I bet we can come up with the right config.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2019-08-07 22:45
Avatar
DocMoebiuz
Moderator
From: NW of KPWK, United States
Posts: 1363
Hi, I got it to work.

Add this line to your XPUIPCOffsets.cfg:
iconCode:
Command	0x66C0	UINT8	0	1	sim/annunciator/test_all_annunciators


Now when you write a "1" to the offset "0x66C0" the switch will toggle ON. Once you write a "0" to the offset, it will toggle back to OFF.
I used a switch doing the onPress write 1 and onRelease write 0 which worked nicely.

I found out what DataRef or Command it is by using this tool
https://github.com/leecbaker/datareftool

If you go to the releases page:
https://github.com/leecbaker/datareftool/releases

You will find a pre-built version that you can install as plugin.

Let me know if it works for you too.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2019-08-08 05:08
icon