EdgeTX / edgetx

EdgeTX is the cutting edge open source firmware for your R/C radio
https://edgetx.org
GNU General Public License v2.0
1.59k stars 338 forks source link

Wrong GV value when used as INVERTED weight in mixer line #5565

Closed wimalopaan closed 4 weeks ago

wimalopaan commented 4 weeks ago

Is there an existing issue for this problem?

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

One can use a GV as weight in a mixer line. Setting this GV to e.g. 42% gives a weight of 42% in a mixer line. But inverting (negating) the GV gives a wrong weight.

Expected Behavior

The inverted GV value should be the negative of the GV.

Steps To Reproduce

Define a mixer with one mixer-line. Use inverted GV1 as weight. Set GV1 in the active flightmode to 100%. Watch the mixer output. The ouput does not travel to -100%.

Version

Nightly (Please give date/commit below)

Transmitter

RadioMaster TX16S / TX16SMK2

Operating System (OS)

Linux

OS Version

Arch Linux

Anything else?

No response

wimalopaan commented 4 weeks ago

Maybe related to #5564

wimalopaan commented 4 weeks ago

Fixed by #5564