Help needed: switch+pot weight

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
carlic
Posts: 2
Joined: Sun Apr 14, 2019 1:57 pm
Country: -

Help needed: switch+pot weight

Post by carlic » Sun Apr 14, 2019 2:10 pm

Hi

Pretty fresh with the open tx so I do need some help mixing seemingly a easy task.
I would like to assign a channel to a 3 position switch and limit the amount of deflection (weight) in either direction by a potentiometer.

For example:
-center position of the switch is 0%
-the potentiometer should control the weight from 5% pot at min, and 20% pot at max. This should work in both directions of the switch symmetricaly.

Help is appreciated!


User avatar
MikeB
9x Developer
Posts: 16349
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Help needed: switch+pot weight

Post by MikeB » Sun Apr 14, 2019 3:48 pm

Use 2 mixes on the channel (example using SA as the switch and S1 as the pot):
+ 50% SA
*= 15% S1 Offset(25%) - a multiply mix.

If you used 100% in the first mix, you would need 7.5% in the second mix, which is why I've suggested 50% and 15%.

Mike
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

carlic
Posts: 2
Joined: Sun Apr 14, 2019 1:57 pm
Country: -

Re: Help needed: switch+pot weight

Post by carlic » Sun Apr 14, 2019 6:17 pm

Worked like a charm!

Thank you!


Post Reply

Return to “openTx”