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
Steve_012
Posts: 8
Good evening,

I'm trying to get the throttle and mixture binded to mobiflight. I am using an Arduino Uno. The propeller works fine but I read in the mod description following

Custom local variables:

Throttle axis
DUCKWORKS_THROTTLE1_SET
DUCKWORKS_THROTTLE2_SET

Mixture axis
DUCKWORKS_MIXTURE1_SET
DUCKWORKS_MIXTURE2_SET

What means this and what do I have to do?

I belive I am not the only poor guy with this question. :)

Hope someone could assist.

Regards

Lutz
2023-02-25 22:31
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
This means that your AddOn Puplisher offer own Variables for these Systems.
You not need ( or can not) use the stock Variables from the Sim (Asobo generic) here.

Check the manuals and guides where you read this... Normaly they also show the expected Values.

Those Set variables can be used e.g. with a Potentiometer in Mobiflight. But we need to know what Value the Sim expect.
So does it go from 0-100 or from 1-16383 or from -5000 to + 12000 ??


Finally you open a new Input Config.... Choose FS2020 Simconnect .... And click on "Show Preset Code" .
There you can enter custom code ( i expect there exist no finishedPReset for your Duckworks AddOn)

In easy words... you must build this code by using the variables you talk about above.
Most easy way... Use the code from a other existing preset and just swap the original Variable with yours.
If the range is identical with the stock Sim range then it should work directly.
Good Luck !
2023-02-26 15:00
Avatar
Steve_012
Posts: 8
Thanks for your quick reply.

I considered the range of values as stock values for Mixture or Throttle. So I used i.e. the standard preset code for "Mixture_set" and adapted to my range as follows:

@ 15 - 16.253 * 0 max 16383 min (>K:DUCKWORKS_MIXTURE1_SET)

Is this what you mean?

But it's not working.
[Last edited by pizman82, 2023-02-26 19:59]
2023-02-26 17:06
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Funny. This chat Software create a Smilie instead of "D" ..... :love:

I think thats the way to go.... But Note its not a K Event !!! Its a LVar LocalVariable ... So use L instead of K

iconSteve_012:


Custom local variables:

Throttle axis
DUCKWORKS_THROTTLE1_SET
DUCKWORKS_THROTTLE2_SET

Mixture axis
DUCKWORKS_MIXTURE1_SET
DUCKWORKS_MIXTURE2_SET




So it should be something like
iconCode:
@ 15 - 16.253 * 0 max 16383 min (>L:DUCKWORKS_MIXTURE1_SET)
Good Luck !
2023-02-26 20:01
Avatar
Steve_012
Posts: 8
That was the missing part of the puzzle! :)

Thanks a lot. You made my day. I don't know the difference between an "L" and a "K" but L for LVar sounds logical.

It's working well. Now I have just to finish my throttle quadrant.

Many thanks for your kind support. Wish you a nice evening.

Regards

P.S.: Indeed the D became a smiley :) How nice.
2023-02-26 21:12
icon