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!
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.
Hi, I am having the same issues with xplane 11 and rotary switches. I understand the logic but I am having difficuties entering the info into mobiflight. could I get step by step instructions on how to enter the input and create a precondition. do I still select xplane command under input? when I try to select a precondition there is just nothing to select. What I am doing now is wrong and I would appreciate a little coaching. Thank you
Hi, I am having the same issues with xplane 11 and rotary switches. I understand the logic but I am having difficuties entering the info into mobiflight. could I get step by step instructions on how to enter the input and create a precondition. do I still select xplane command under input? when I try to select a precondition there is just nothing to select. What I am doing now is wrong and I would appreciate a little coaching. Thank you
Hi,
1) create an output, where data is coming from the readonly dataref - display tab can be empty
2) create the input - under precondition tab you enter the precondition referring to the output with a value
under action you enter the command.
Hi, I am having the same issues with xplane 11 and rotary switches. I understand the logic but I am having difficuties entering the info into mobiflight. could I get step by step instructions on how to enter the input and create a precondition. do I still select xplane command under input? when I try to select a precondition there is just nothing to select. What I am doing now is wrong and I would appreciate a little coaching. Thank you
Hi,
1) create an output, where data is coming from the readonly dataref - display tab can be empty
2) create the input - under precondition tab you enter the precondition referring to the output with a value
under action you enter the command.
Thank you so much for helping. The switch works well now and I was able to add a state following the logic. This has solved a difficult issue for a newcommer like me. I have learned a lot as well. Once again thank you Roberto
Thank you so much for helping. The switch works well now and I was able to add a state following the logic. This has solved a difficult issue for a newcommer like me. I have learned a lot as well. Once again thank you Roberto
You're welcome. I'm happy if you've learnt a lot from this, now you can figure out a lot more solutions
Hi again
Apollogy for this wrong information !
I talked to Sebastian yesterday, to confirm this....
As you already find out.... The Mobiflight Interface (New feature Xplane Support) currently NOT allow multiple commands and also not a "Hold" Function like XPUIPC do.
Not sure if this will come in the future. We work on it but sure focus is still FS2020.
Solution:
Sebastian already recommend a tool on our discord.... A External programm where users can create "Lua Code" .
In easy words... With MF we tell this Programm "Please Run Macro xxx" and in this programm we write ( In lua coding language) the needed stuff.
There we can do all coding ways we like.
E.g.
Send 3x Left and 2x Right.
or
We can say... check the virtual switch position ... If its higher then our target then turn left, if its lower then turn right..: Check again. If its equal then stop.
In easy words....
For stuff that need a deeper code instead of fire a single command or write a dataref to a hard value we currently need this "external" solution !
Hello XPRoberto
Unfortunately, it's not very clear to me. Could you please share the screenshot of the MF output and input to see how you proceed?
Many thanks for your help.
Hi,
Come to discord, there we can share screenshots.
However it is not so complicated.
If you followed the basic tutorials, you can easily create the logic yourself:
- how to set up a simple output (you need one that shows the current position)
- how to setup inputs with preconditions (as I described you need to create several inputs)
Try it step by step, then you can figure out all the others.
a) Your switch is in position #0. (output value of current position = 0)
b) You turn the switch to #1
c) Then the input event: precondition: current_value=0; action=command_up
2nd example:
a) Your switch is now in position #1. (output value of current position = 1)
b) You turn the switch to #2
c) Then the input event: precondition: current_value=1; action=command_up
3rd example:
a) Your switch now is in position #2. (output value of current position = 2)
b) You turn the switch back to #1
c) Then the input event: precondition: current_value=2; action=command_down
Try it
Assuming you have a readonly dataref: 0..1..2 and commands: up and down
Assuming you have hardware input device: 0...1...2 (e.g. a rotary switch)
you need 4 input configs
Is this a name? config_0-1
I assume this is the first position of the rotary knob? input device #1
Current value is the first position? Action would the command laminar/B738/knob/autobrake_up? (precondition: current_value=0; action=command_up
Thanks