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!
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.
Index > MobiFlight General > Change from NAV1 displays (active & stby) with 1 button-press to NAV2 (active & stby)
hi everyone,
I have (2) 7-segment-displays, one shows NAV 1 active freq., the other NAV1 stby freq.
is it possible to create a button-press inside mobiflight, to change the 2 mentioned displays to NAV2 values (active and stby) ?
And to awnser your next question..... Also the INPUTS need to use this system....
Cause when you show NAV1 then you like that the Encoder change Nav1 Frequency and you like the swap Button to handle the frequency Change.
Key is a Mobiflight Variable....
You use a Button or switch to set a internal MF Variable. In that case there are only 2 States ( Nav1 or Nav2) so the Variable simply is "0" or "1".
Means you need a Input that "toggle" or "switch" this variable between 0 and 1.
Next Step is to build a OUTPUT Config that read this Variable... Lets call it "NavState" This is used later for indication !
Finally you use the PRECONDITION Feature of Mobiflight in all Related Configs.
Means you buld 2 Sets of Configs.
2 Configs for Active.... 2 Configs for Stby .... 2 Configs for the Swap Button and 2 Configs for the Encoder.
There is always one config for NAV1 and another for NAV2.
At the end you need to add a Precondition to each single Config.
All NAV1 related Configs say "Only work if "NavStatus" =0 and Nav2 related Configs say "Only work if "NavStatus"=1
I hope you understand.... We say e.g. with a button as input : if($=1,0,1) Means every press we "toggle" it from 0 to 1 or from 1 to 0 to define the mode....
And by the preconditions we define what thing is currently used in case of if the Variable is 1 or 0
thanks pizman, that sounds difficult
until now, i have created two encoder-inputs to dial the NAV 1 stby-freq in Mhz, click the encoder pusbutton and change the Khz, press it again to swap it to NAV1 active freq.
now i have to figure out how to add another button to swap hole NAV 1 freqencies to NAV 2 frequencies inside the same two 7 segment displays. and i have no idea how to do it
i have created two encoder-inputs to dial the NAV 1 stby-freq in Mhz, click the encoder pusbutton and change the Khz, press it again to swap it to NAV1 active freq.
Wow. I never saw this before. Pretty sure possible by our new Input Actions Feature.... But if you was be able to build this system..... Then the Toggle of the Nav1/Nav2 is not difficult to you :-)
Solution:
At first... Think about additional Hardware !
In Real there is a policy in Aviation to hold things easy, tidy and clear. Real Aircrafts normaly not use a Encoder you would press by button to change MhZ and Khz.
In real there is a dual Encoder with 2 shafts ( inner outer) to avoid a misstake.
Same for the swap. A Real aircraft have a own button for swap..... Its not logical to use the same where you change Mhz/Khz. Its fatal if you like to Swap but by mistake you just change the Mhz .... So you mean Nav is swaped correct but your already in wrong frequency. Worst case... you alligned for paralell runway by fault.
This is not logical. Lets say you like to change Mhz , then you change Khz and you see you did a mistake before in Mhz. So you need to change it once again.
In your logic this is not possible cause the next button press "swap" Active and Stby. You need to press it 3 more times to move through the 2 Mhz functions and another swap to bring the stby back and then it work..... Way to difficult !!
I would simply use some more Buttons. One for Swap ( mostly between the 2 Displays) and 2 for the Mode. Here also a roatry or latching switch can be used. One Position for NAV1 and one for NAV2
Using the Encoder Button for Mhz/Khz is fine. Save you 15$ for a Dual Encoder. But the Swap and Mode should be done with own individual inputs !
If you really like to do this with one button ( the one on encoder) we can build it. But its not comfortable. E.g. before you can toggle to Nav2 you have to swap Nav1.
you are wright, i will install a separate button for the swap.
but until now i can't imagine how to set up this button and by pressing it, it will change both NAV1 displays (active/stby) to NAV2 active/stby ... i mentioned it in the last post, that NAV1 active/stby works fine. so with your advice, i would copy all NAV1 inputs/outputs and name it NAV2-system. but how could i set up mobiflight to this button havibg NAV1 (with e.g. 0) and after pressing the button displaying NAV2 (with e.g. 1) ?
Best way.... Do you use DISCORD ???
If yes... Contact me there.
On Discord we can write like here but live in a chat.... we can easy share screenshots or other pictures and also example files.
And best benefit... We can talk together for free with a headset. And share our screens.
So you can show me the config... I can show you a soluton, and we can talk instead of type all in our keyboards.
Good Luck !
2022-07-06 21:38
Index > MobiFlight General > Change from NAV1 displays (active & stby) with 1 button-press to NAV2 (active & stby)