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
dosen701
Posts: 2
Sorry, my mother tongue is not English, so this passage is from Google Translator. I hope you can understand it.:D :D :D

My purpose:
Use one key switch to simulate the CLR key of GNS530.



Problems encountered:
In the Input setting, the functions are divided into "AS530_CLR_Push" and "AS530_CLR_Push_Long". After I set the switch to "AS530_CLR_Push", the function of pressing the switch for a short time is normal, but even if I hold the CLR, it will not return to the NAV interface. Do I must have to set two keys for these two functions?

Are there any other solutions?

Thank you.
2023-02-19 17:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

For now Mobiflight not itself support a "short" and "long" push.
For MF a Press send a signal and a Release send a signal... Always when happen.
So whatever you press a button short or hold it for 10 seconds.... In both ways only one (same) Command is execute directly in moment of press.

In Sim logical there are 2 Input types... So there exist 2 Events!

Solution:
Please check the other Presets for CLR Key.

Some advanced users write a own RPN Code to handle this.....
By build a internal "Timer" on Press of the Button they check for start of Action.
On Release they use a command like "Check how many time is gone since Press happen.... If its Less then 1 second then do A else do B.

Maybe you find a good event or you be able to copy/rework this code into your element.

If NOT..... Please Join Discord and talk to users Tuomas or Jaime (Both Moderators in Orange Color) They can pretty sure help you directly !
https://discord.gg/99vHbK7
Good Luck !
2023-02-19 20:20
Avatar
dosen701
Posts: 2
Thank you very much for your reply.

Do you know where there is a teaching address about using RPN code,please?

I also know the hubhop website, but I don't know how to use the CODE in it.:blink: :blink: :blink:
2023-02-20 03:16
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Simple Google.

RPN (Reverse polish notation) is a very famous coding style for decades and is used in many many Systems.
There are pretty sure lots of tutorials and guides in the web and in your language.
Good Luck !
2023-02-20 18:51
icon