Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input Source - discrepancy between color and B&W radios #4998

Open
1 task done
philmoz opened this issue May 13, 2024 · 2 comments
Open
1 task done

Input Source - discrepancy between color and B&W radios #4998

philmoz opened this issue May 13, 2024 · 2 comments
Labels
bug 🪲 Something isn't working triage Bug report awaiting review / sorting

Comments

@philmoz
Copy link
Collaborator

philmoz commented May 13, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

@3djc discovered that color and B&W radios handle the Input Source field differently - they apply different filters to determine which sources are actually valid for an Input.

Color radios use a function called isSourceAvailable(), B&W use isSourceAvailableInInputs().

This looks to date back to the initial Lvgl conversion around 2.4/2.5. In 2.3 both used the isSourceAvailableInInputs() function.

The table below shows the difference I can find between these two filters.

Source Color B&W
HELI YES NO
SPACEMOUSE Only if configured on serial port YES
Channels Only if Mix exists for channel YES
TIMERS YES NO
BATT, TIME, GPS YES NO
Telemetry ALL Only if UNIT < DATETIME

Since isSourceAvailableInInputs() was originally used by all then the color change may be a mistake not picked up.
Or it could be a deliberate change - I don't know the history.

Asking for feedback on how to handle this:

  • Do nothing, leave the status quo
  • Change color to use isSourceAvailableInInputs()
  • Change B&W to use isSourceAvailable()
  • Some other solution

Expected Behavior

Consistency between color and B&W radios.

Steps To Reproduce

Compare options available for input source on color VS B&W radios.

Version

2.9.4

Transmitter

RadioMaster TX16S / TX16SMK2

Operating System (OS)

No response

OS Version

No response

Anything else?

No response

@philmoz philmoz added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels May 13, 2024
@pfeerick
Copy link
Member

pfeerick commented May 13, 2024 via email

@3djc
Copy link
Collaborator

3djc commented May 13, 2024

Are some of those source even possible ?? What happens if you put a timer as a source ?? How is range mapped to -RESX to +RESX. Not even mentioning GPS
The original idea of isSourceAvailableInInputs() is to ensure only source valid (in terme of range) can be set as source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working triage Bug report awaiting review / sorting
Projects
None yet
Development

No branches or pull requests

3 participants