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
Mariolino
Posts: 2
Hello everybody.
I use "X Plane 11" and Arduino MEGA2650 PCB. I have programmed all switches ( digital inputs ) used in Cessna 172 but I have a problem with the "magneto" multi-switch behavior. As you already know, magneto switch has 5 positions: OFF, R, L, BOTH and START. I have configured all 5 positions and they work fine except "START" position. Each time when I try to simulate the position "START", the rotating key switches very quickly to the "START" position and then back to "BOTH" position. Due to the short time of the key in the position "START" it is not possible to start the Cessna 172 engine. So, to make it clear, if I permanently close the digital input for "Magento START" position, the starting key in the cockpit is engaged shortly to the position "START" ( half a second ) and it goes back to "BOTH" position. Does anybody have an idea how to solve this problem? Thanks a lot. Best regards.
2023-02-19 17:46
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

This is a knwon problem....
Instead of other systems some aircrafts expect for the Starting Switch a "hold" command..... Like in real where Start is not a latching position.... Its momentary.

Problem:
The new "Mobiflight Xplane Dataref" Tool not already support "Hold" Inputs. We can only do set inputs here for now.

Solution:
You can go the old way.... By use XPUIPC and define the input there. XPUIPC allow to use a parameter for Press, Release, Toggle and Hold !

Alternate is using a tool called "FlyWithLUA"
There you can write a easy Lua script i expect that also can do the "hold" thing

Last alternate.... Maybe its possible to set this command in Sim directly with a Joystick Button.
MF can execute the Command via VJOY to a virtual Joystick.... And these can do the work !
Good Luck !
2023-02-19 20:08
Avatar
Mariolino
Posts: 2
Hi pizman82.

Thanks a lot for a quick response. To be honest I am not quite familiar with configuring the XPUIPC. Is there any procedure how to configure XPUIPC? I have already installed XPUIPC on my computer ( in the "X Plane 11" designated folder ) but I don't know how to configure "magneto start" input in it. I am searching for a proper solution on the internet but if You know where to find XPUIPC configuration example I would appreciate it. Thanks and best regards.
2023-02-21 12:33
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Again !

The "Example" is already within your XPUIPC Installation folder.... Simply open the file "XpuipcOffsets.cfg"
There you see a tutorial and code examples.

If your not advanced in coding i recommend to Join our Discord https://discord.gg/99vHbK7
In the Xplane Sub Section there is the User "Samhaho" and also "Tuomas" .
Sam got a lot of experience with the usage of XPUIPC (before our own tool come to MF).
He can pretty sure help you better like myself !
Good Luck !
2023-02-21 21:03
Avatar
thomaspeak
Posts: 4
The issue you're facing with the "START" position switching back to "BOTH" quickly might be due to a timing problem in your code or a debounce issue. Try adjusting the timing or implementing a debouncing algorithm to ensure the "START" position stays engaged long enough for the engine to start. I actually had a big project involving complex software development recently, and I ended up hiring a top-notch Magento development services company to help me out. They provided expert assistance and customized solutions that made a huge difference in the success of my project, so I definitely recommend considering professional help if you're stuck.
[Last edited by thomaspeak, 2023-07-10 13:34]
2023-07-08 01:46
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
This is a known limitation of the XPlane API that MobiFlight is using.

There are only two options to solve this:
* You create a custom command that handles it properly for you (example available on our Discord server)
* You use vJoy and you assign the virtual joystick button in the native X-Plane Joystick interface.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2023-09-04 18:22
icon