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

Input editor may show the wrong curve for inputs with multiple lines #3057

Open philmoz opened 1 year ago

philmoz commented 1 year ago

Is there an existing issue for this problem?

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

Where an input has multiple lines with different weight, offset, expo or custom curve, the input editor displays the curve for the active line (based on switch selection), not the line that was selected for editing.

Editing the input line values will not update the curve preview in this case.

Expected Behavior

The input editor should display the curve preview for the line being edited not the active input line.

Steps To Reproduce

  1. Create an input with multiple lines controlled by a switch.
  2. Set input line values so the curves are obviously different.
  3. Edit the active line - note the curve preview is correct and updates when values are changed
  4. Edit an inactive line - note the curve preview will be from the active line and does not update

Version

2.8.0

Transmitter

Radiomaster TX16S / TX16SMK2

Anything else?

No response

eshifri commented 1 year ago

It was always this way starting from old OTX versions. I always considered it to be a "strange feature" rather than a bug. :-) Actually it is kind of convenient albeit not too logical. :-)

philmoz commented 1 year ago

I'm not sure how seeing the wrong curve and not seeing it update as you edit the input values is convenient; but if that's the expected behaviour then I'll leave it alone for now.

eshifri commented 1 year ago

It reacts to the switch and it is convenient to curves for all switch positions. Anyway, it is one man opinion only. Maybe other users/developers will also consider it a bug. Maybe keep it open for other people to comment.

pfeerick commented 1 year ago

I agree with @philmoz ... while I appreciate it is legacy OTX behaviour, IMO it is somewhat a bug... the curve being shown is of the active input, rather than then one you selected... on OTX you can sort of figure this out as the switch will not be bold if the input is not active... but still.. it's not intuitive.

I think we need some discussion on whether we should keep the current behaviour (and perhaps indicate this is what is happening better) or make it so the graph shown reflects the curve and settings indicated. I get why this is done... it is nothing to do with the curve explcitly, but allowing you to quickly flick through (for examples) three input rows to see how they differ, and then switch back to the current one and keep editing it). i.e. The graph is showing the "active" input, not the currently selected one.

eshifri commented 1 year ago

Yes, this is exactly what I meant: it is convenient to see all setups, attached to the switch. Maybe we should switch between mixer lines, based on the switch position? But on the other hand, in this case selection of the line for editing does not mean anything.... I do not have good ideas.

pfeerick commented 1 year ago

It's almost like a toggle is needed to show active input vs input being edited.

philmoz commented 1 year ago

It's almost like a toggle is needed to show active input vs input being edited.

You read my mind :)

Screen Shot 2023-01-18 at 6 16 28 pm