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! 

icon
Avatar
mrice96680
Posts: 3
Hi all. First, coming from SimVim to Mobiflight is an amazing experience. I spent so many weeks messing around with SimVim, and while I ultimately got it to work it was very difficult to make any changes. In about two hours with Mobiflight I replicated my entire X Plane setup (almost) and did an identical one for MSFS. Holy wow!

Ok, here's my question. I want to use a rotary switch to control the behaviors of my buttons and encoders. The basic example is that I want rotary switch position one to make all of my buttons and encoders control the G1000 PFD, and rotary switch position two to make all of them control the G1000 MFD. I've figured out that I need to use preconditions, and that preconditions do not use the rotary switch position per se, but rather I need to figure out how to use offsets and variables and such.

The problem is that I have ZERO idea how to do that, and no familiarity with FSUIPC. I've looked through the documentation, the forum, and the web and couldn't make sense of anything. Does anyone have a really simple approach to doing what I'm asking? I'm happy to post screen shots or anything else that could make this easier for someone to help me.

Much appreciated, and thanks in advance!
2023-10-01 19:37
Avatar
XPRoberto
From: Hungary
Posts: 65
Hi,
1) create a Mobiflighe variable, which refers to the actual behavior (e.g. VAR_mode)
2) the rotary switch position simply gives value to this variable (e.g. action - sets value of VAR_mode to 1 or 2)
3) all the other inputs have 2 rows
- 1st action where at precondition VAR_mode=1
- 2nd action where at precondition VAR_mode=2
Sorry I cannot attach now screenshots, but the dialogs are self-explanatory.
You can check how preconditions work here: https://www.youtube.com/watch?v=A01GeLmcKmM
Are you succeeding now?
[Last edited by XPRoberto, 2023-10-02 15:01]
----------------------------------------------------------------
Do you know that you can simplify: if($=1,0,1) ?
Use simply: 1-$ :)
2023-10-02 13:25
Avatar
mrice96680
Posts: 3
Thx XPRoberto! Sorry for the delayed reply. This definitely helps me understand a bit better. I'm assuming that VAR_mode 1 or 2 corresponds to the switch being on or off? So if the rotary switch, for example, is in position 3, the the switch would be on and the VAR_mode would equal 1. If it wasn't in position 3, then the switch would be off and the VAR_mode would equal 2? Or something like that?

The concept of preconditions makes sense to me. It's setting up the variables correctly that is giving me a bit of challenge. I haven't played around with this enough yet to know whether I'm succeeding, but you've helped me move forward, so thank you!
2023-10-04 02:49
Avatar
XPRoberto
From: Hungary
Posts: 65
Hi,
I'm glad it helps.
Yes the VAR_mode is linked to your rotary that controls the behaviour.
As a first step program the rotary and check the VAR_mode value on the output page, whether it goes to correctly to 1 and 2.
----------------------------------------------------------------
Do you know that you can simplify: if($=1,0,1) ?
Use simply: 1-$ :)
2023-10-04 13:17
Avatar
mrice96680
Posts: 3
Hey XPRoberto, I got everything up and running really well for both X-Plane and MSFS. Instead of using the rotary switch I just used one of the encoder buttons that was not mapped. Works incredibly well! Thanks for all the help. I'll fiddle around with the rotary switch at some point but for now the encoder button isn't going to be needed for anything so I'll stick with it.
2023-10-07 19:54
Avatar
Allenwood
Posts: 9
Podlix Puff Bunny are a cutting-edge line of electronic vaporizers designed for users seeking a sleek and user-friendly vaping experience. Crafted with precision and style, these devices offer a perfect blend of form and function. With a focus on simplicity, Podlix Puff Bunny Flavors feature easy-to-use controls, ensuring both novices and seasoned vapers can enjoy a hassle-free experience.



Equipped with advanced technology, Podlix Puff Bunny deliver a smooth and satisfying vapor production, allowing users to customize their nicotine intake and flavor preferences. The compact design makes them portable and convenient for on-the-go use, while the rechargeable batteries ensure long-lasting performance.

Podlix Puff Bunny also stand out with their diverse range of flavors, providing a delightful array of options to suit individual tastes. Whether you're a fan of classic tobacco, refreshing menthol, or indulgent dessert flavors, Podlix Puff Bunny Flavors cater to a wide spectrum of preferences.

In summary, Podlix Puff Bunny offer a blend of style, functionality, and flavor diversity, making them an ideal choice for those seeking a reliable and enjoyable vaping experience.
2024-02-20 19:13
Avatar
hickmankay
Posts: 2
@dordle I successfully set up and launched both MSFS and X-Plane. I merely utilized one of the encoder buttons that wasn't mapped in place of the rotary switch. Works wonderfully!
2024-04-03 11:06
icon