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.
If($=1,0,1) is a TOGGLE.....
Mostly use for ON OFF Switches or Momentary Buttons.
A Encoder should change a value by a factor.... e.g. increase Altitude ..... Change Heading .... Increase Frequencys or so.
So a Encoder use something like $+1 on Right and $-1 on left ( Verry basic explaned. Mostly formulas are more advanced)
So a On Fast means you just increase/decrease by a bigger ammount of value..... for example On Right $+1 on Right Fast $+100
How should i know in your Request that you talk about "custom Commands" via own scripts within the XPUIPC Ini file ??
For a "standard" Function it is like i say.... Here we need something like $+1
Here we directly write a Offset Value ( that represent e.g. Altitude) ... So here if($=1,0,1) make fully no sense.
For this special "Commands" that are used from that guy i have no big experience.....
But from Code he make a verry simple logic....
He say... IF Offset 680A have Value "1" then XPUIPC should execute the "Event" altitude_UP ( Pretty sure one time)
If we say now in Mobiflight our Encoder should set this Offset to "1" then thsi work one time.... But on next detent the Encoder will write the Offset to "1" again. BUT it is still "1" from before.... Means there is no "change" in the Offset. so XPUIPC will not recive the second command and all follows.
So he use a trick.... in second line he say.... IF Offset 680A have Value "0" then ALSO execute the same Event altitude_UP.
Means. Each time the Offset change to 1 OR to 0.... It execute that command.
And finaly in Mobiflight he say.... if($=1,0,1) that simply toggle the Value of that Offset with every detent.... If its 0 it set to 1. If its 1 it will set to 0.
So toruning of Encoder ocure in 1-0-1-0-1-0-1-0 and so on.
*********************
About ON FAST.
Here the key is to use a different Event !
The used system fire that "Event" form XPUIPC ( that for example increase by 100ft) .... If you like a higher increase then you need a other Event that increase e.g. by 500ft.
I donĀ“t know if this exist.
If yes you can duplicate the system,.... Use the "bigger" event with a other Offset... And in Mobiflight you say "On fast" the other Offset should be toggled .