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
Banzai
From: France
Posts: 90
Hello

what is the right value to set the left fast and the right fast function for encoder

i use if($=1,0,1) value in left and right function

but i don't know how settings the fast function:confused:
2021-01-17 19:15
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Make no sense....

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
Good Luck !
2021-01-21 17:29
Avatar
Banzai
From: France
Posts: 90
Hi
I just followed this topic!

https://www.mobiflight.com/forum/topic/2926.html


""This one is used for encoders, but you need to add if($=1,0,1) to the value section in MobiFlight. (credits go to pizman)""

Command 0x680A UINT8 1 1 laminar/B738/autopilot/altitude_up _
Command 0x680A UINT8 1 0 laminar/B738/autopilot/altitude_up

Command 0x680B UINT8 1 1 laminar/B738/autopilot/altitude_dn _
Command 0x680B UINT8 1 0 laminar/B738/autopilot/altitude_dn
2021-01-22 19:34
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
You talk about a fully different system.

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....

iconQuote:

Command 0x680A UINT8 1 1 laminar/B738/autopilot/altitude_up _
Command 0x680A UINT8 1 0 laminar/B738/autopilot/altitude_up



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 .
Good Luck !
2021-01-23 08:24
icon