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
nicher
Posts: 5
Hello
I am using the above. I have a stickshaker that is activated by the 556D offset a (pre stall) and i would like the normal stall offset 036C to "take over" activating the relay once at the stall.
At the moment, when get to the prestall the stickshaker activates, but once i am in a stall it does not.
When i try to have both offsets active, the stickshaker now only activates once in the stall.
Thank you
2021-10-23 11:24
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I can not fully see the situation.... So you can not expect a sultion a.t.m.
BUT
I think i can awnser your request more "basic".

Every Pin ( Output) have a clear State ( 1/0 High Low) for regularry Pins OR 0-255 for PWM ( Only if in use..... Else also the PWM Pins are 1/0 )

For sure.... This is only logical if only one "System" controll a Pin at same time.

So it is technical possible that Mobiflight controll a Pin by 2 differen Configs..... But you get in struggle if the 2 Configs request a inverted result....
E.g. Config 1 say Pin should be "0" .... config 2 request pin should be "1" ..... then the Pin "flickering" between 0 and 1 in millisecond steps!

What you need is just a "advanced logic"

Normaly in a basic config we say "Please check a Raw Data" ( e.g. a FSUIPC Offset State) ..... And then we say e.g. "if Offset is 1 then Light a LED ( or run your shaker via a Relais).
In your case you need TWO indications !
Lets say Indication A is 556D and Indication B 036C
So you read BOTH in a single Config each. To get the needed Data. ( You can do recalulations also here).
Finally you create a 3rd Config..... Here you not use a Offset! You just activate 2 Placeholders and use the other 2 Configs (Where you read the 2 Raw Data) , Define it e.g. as "a" and "b".

Finally you need to know WHAT you like to do.....
For example you like that your shaker workes whatever 556D OR 036C is "1" .... Then you can say simply a+b
If both are zero then a+b means 0+0=0 ( Shaker Off) ...... If one is on then 1+0=1 or 0+1=1 .... So On..... If Both are 1 ..... then 1+1=2 Also ON in case all biger then 0 is ON.

For sure you can make also more advanced things..... Like ON only if Both are "1" .... use e.g. if(a=1&&b=1,1,0)

*****************

May you already understand.
if NOT.....
Tell me:
What numbers are shown in the 2 Offsets.... What should exactly happen with the shaker and WHEN must it happen.....
Then i can build you the correct formula !
Good Luck !
2021-10-27 22:02
Avatar
nicher
Posts: 5
Thanks Pizman,
With your permission, I will send you screenshots what i see on mobi. I do not understand how to create advanced logic, but together i am sure we will make it. I will not see the sim for 7 days so i will send you the screenshots asap.
Thanks for your support
Nick
2021-10-27 22:07
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
NoProb.
If Possible.... And your still Online.
Join DISCORD.... https://discord.gg/99vHbK7

I´m Online Today..... And there we can share Screens much better or can talk for free via Headset
Good Luck !
2021-10-27 22:10
icon