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.

Go to page 1Go to page 012Go to page 2Go to page 2
Avatar
MASTERP
Posts: 55
Hi Sebastian,

I found that the push button (pb) through MF offset does not work smoothly as the joystick button.

I connected pb with MF (Adruino Mega) and sometimes it engaged fine, sometime I have to push twice for the button engaged. (randomly)
The same pb I solder to the joystick, and it works really smooth.

All the connection from pb to Adruino has been checked carefully, I am not sure Did I made something wrong? (I use Pin and GND for a pb, not with 5v)
Or do we need a resistor between a pin and pb's (+) ?
I can live with this issue, but it will be great if pb through MF & Adruino can work same as joystick button.

Thanks
Vu

P/S I found this topic on Adruino website. So how we deal with this Debounce issue in MF ?
https://www.arduino.cc/en/Tutorial/Debounce
Thanks alot
[Last edited by MASTERP, 2016-04-12 08:13]
2016-04-11 06:04
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
MF has already Software Debounce implemented.

Please enable Debug Mode in the settings and see if it helps for your case.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2016-04-16 22:58
Avatar
MASTERP
Posts: 55
iconDocMoebiuz:

MF has already Software Debounce implemented.

Please enable Debug Mode in the settings and see if it helps for your case.



Thanks Sebastian.
With Enable Debug Logging and set FSUIPC tab to 100ms, it is now better.
Not really smooth as joystick/gamepad's buttons but it much better than before.
Regards,
Vu
[Last edited by MASTERP, 2016-04-22 03:54]
2016-04-20 08:46
Avatar
TarsoSousa
From: SBNT
Posts: 46
I have the same problem here but after activating DEBUG the problem go away!
2016-05-13 14:16
Avatar
TarsoSousa
From: SBNT
Posts: 46
some pushbuttons to get great operational we have to use parameters for the mouse


536870912 for pushing the button
and 131072 for release of the button
2016-07-29 01:03
Avatar
MASTERP
Posts: 55
iconTarsoSousa:

some pushbuttons to get great operational we have to use parameters for the mouse


536870912 for pushing the button
and 131072 for release of the button



Hi Sebastian,

I tried to look for the TX led on the board when pressing MCDU button.
sometimes even with the TX led is flashing, but the display shown nothing.
Press again and then a text shown up.

I also figured out, at the startup of MF, there are no bouncing. However it bounces about few minutes later. I am really confuse.
Do you think I am facing a power supply problem for an Arduino Mega board? or the problem comes from fsuipc offset?
Many thanks,

Hi TarsoSousa, what do you mean by use parameters for the mouse :rolleyes: ? Thanks
2017-02-07 10:29
Avatar
pizman82
From: ETSI, Germany
Posts: 6010
Supporter
Hi guys.

Maby you got a little hardware problem... " Bouncing" can came to trouble....

But basicly youre discribed problem looks like the "Log Debug Problem"
Me and some other user got the same issue..... 5-20% of button pushes not sent to the simulator. Sebastian can not reproduce this, cause it happend only on some user systems.... Other users dont have any problem.

Try to enable logging mode and set logging to "Debug".
On my system and most other users this solved the problem ! Actual looks like this get no negativ Accompanying.

Good Luck !
Good Luck !
2017-02-15 11:36
Avatar
MASTERP
Posts: 55
Hi pizman82,

I have already enabled logging mode and set to debug, it better than before.
However my problem is, sometimes the command is not sent to Jeehell, (through fsuipc offset) the tx led on arduino is flashing when pressed, but no command sent through offset.

I tried to press hard the button and then its work OK...
So i am wondering about timing when press the button.

The interesting thing is, at the first start of mobiflight, just need to press button very gentle and it works great with every single buttons.
2017-02-16 03:24
Avatar
pizman82
From: ETSI, Germany
Posts: 6010
Supporter
Sounds strange !

I can´t see youre project !
You need to find out youreself if youre hardware is working fine.

Maby you can try another push buttons or you build a simple test on breadboard. ( Without Arduino Sketch or Mobiflight)
Just set a LED and Resistor to this button and a battery Then Push it 100 times.
If the LED is working perfect then the Problem is in Mobiflight or Software... If youre button got Errors and you need here to a Hard push after some time then youre button itself is broke !

By the way.....

iconQuote:

However my problem is, sometimes the command is not sent to Jeehell, (through fsuipc offset) the tx led on arduino is flashing when pressed, but no command sent through offset.


With Logging Mode on you see the Debug String.... Can you Confirm Mobiflight receive the Commands of Arduino ? Speceal in the moments when nothing is sent....

Thank you for youre research help !
Good Luck !
2017-02-16 06:37
Avatar
MASTERP
Posts: 55
since my MCDU display and mobiflight window are on 2 separate monitor so I think I can not see both screen at the same time when press button to check :lol:
But I believe some command has not been sent to mobiflight even when there is an input on arrduino. There are may be a gap between those which I can not explain...
BTW, both arduino are running with USB power , no external 5v supplied.
2017-02-23 04:59
Avatar
MASTERP
Posts: 55
I just found that, when the bouncing happens, just need to Stop (Red) Mobiflight and press Run (Green) again.
Then the bouncing gone away. I am using the latest MF version.
2017-03-07 10:27
Avatar
MASTERP
Posts: 55
https://youtu.be/AyzxYKkS_Jo
You can see my video sometimes buttons need to press several time .
2017-03-07 10:34
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi,

Again. Strange thing !

As i told its imposible to understand this at the moment.... Maby it´s a simular problem like the "Logging Debug" Situation..... Problem is Sebastian can not solve this cause it not happend on his system and so he can´t reproduce the problem at the moment.

A good tactic would be if we know WHERE the information get lost....

As i told the LED on the Mega isn´t a good evidence for us..... This only say something on the Arduino is happend. It NOT tell us if information is reaching the Mobiflight Software.
If possible please check the Debug String.... ( Logging Mode ON Typ DEBUG ) There is a 3 Line Display on the Main Page of Mobifight where you can see what happend. If you push the button you see if Mobiflight check the Push ( and Release) correct.....
1.Question is..... Does Mobiflight know the Buttonpush in a Situation where you got a issue ?

Additional the next question is.... does the command reach the Simulator ?
Here it would be nice if you tell me you got a registred FSUIPC Version... If Yes you can use the Logging Tool of FSUIPC to see if a command is send to the simulator.


ONE THING i don´t understand at all....
Why it helps if you stop and start Mobiflight ?? Maby Sebastian can tell us something about this fact !


So if you like you can do some research again and confirm with the logging tools where youre commands get lost !
Good Luck !
2017-03-07 16:40
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
No I can't right now. Interestingly I had the same experience yesterday when I was testing the upcoming version. Stopping and Starting solved the issue.

The board itself doesn't know if MF is running or not so I assume it is somewhere on the PC side as if the assigned functions that shall be executed just are not found. I will look into it.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-03-08 03:53
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Normaly it´s bad if we got a bug or a problem..... But thistime i see this positiv......

This is basicly the same problem like me and other people got long time (Logging Debug) . ... Not 1:1 the same cause it is still present on my system.... On Youres it´s going more problematic while time goes by...... BUT now Sebastian got the same issue.

Maby this is the Key for both Problems. I´m just glad Sebastian now got the chance to test and reproduce this !
Good Luck !
2017-03-08 04:59
Go to page 1Go to page 012Go to page 2Go to page 2