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

feat(telemetry): modify Sensor Edit screens to show Ratio + Percentage #4649

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

frankiearzu
Copy link
Contributor

@frankiearzu frankiearzu commented Feb 16, 2024

Fixes #4648
Works in main as well as 2.9 branch.
Changes are isolated in the display portion of the UI

Summary of changes:
Change the Telemetry Sensor Edit to show the equivalent percentage.
Works on color and B&W radios.

image
image

image
image

@pfeerick
Copy link
Member

pfeerick commented Feb 16, 2024

We are past feature freeze (fixes only now), so this will be 2.11

@pfeerick pfeerick added this to the 2.11 milestone Feb 16, 2024
@frankiearzu
Copy link
Contributor Author

Firmware for Radiomaster TX16S if you want to try it (2.9.4 + this change)
tx16s-edgetx-v2.9.4-Tel-Ratio-Percent.bin.zip

@pfeerick pfeerick added enhancement ✨ New feature or request UX-UI Related to user experience (UX) or user interface (UI) behaviour labels Feb 17, 2024
1. Process correctly the CELLS (0x3A) message
2. Fix temperatures to not have decimals.. otherwise conversion between C and F will not work
@philmoz
Copy link
Collaborator

philmoz commented Mar 16, 2024

My take on this would be to hide the ratio value/percentage altogether and instead show the adjusted sensor value as you edit the field.

This is how the battery calibration field works on the hardware page - you don't see the calibration factor, you just see the adjusted battery voltage.

This remove any confusion over the meaning and gives you real time feedback of what the change is doing to the sensor value.

Should probably also change the 'Ratio' label to something more intuitive like 'Calibrated value'.

@3djc
Copy link
Collaborator

3djc commented Mar 16, 2024

I like the idea

@jtaylor2
Copy link
Contributor

jtaylor2 commented Mar 16, 2024

My take on this would be to hide the ratio value/percentage altogether and instead show the adjusted sensor value as you edit the field.

Edit: Rereading, perhaps I misunderstand. Are you saying still allow entering the ratio in edit, just not display it on the sensor page? If so disregard the rest of this.

Then how would you enter the ratio without the sensor present? If I build a V1 or V2 voltage divider I know what ratio value to enter (it's easily calculated) and for v1 and v2 sensors the values for ratio have been documented in the instructions for years.

I guess I don't understand the current confusion (if it even exists) because it's been the way it is for over a decade and is well documented in many places. Lets not dumb it down too much and break all the existing documentation.

https://www.frsky-rc.com/wp-content/uploads/Downloads/Amanual/FBVS01%20Manual.pdf
https://doc.open-tx.org/manual-for-opentx-2-2/software-overview/model_menus/telemetry
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/blob/master/Protocols_Details.md#FLYSKY-AFHDS2A-RX---56

@frankiearzu
Copy link
Contributor Author

frankiearzu commented Mar 16, 2024 via email

@3djc
Copy link
Collaborator

3djc commented Mar 17, 2024

I could agree for percentages, but not for meaningless numbers just because old documentation exists.

@jtaylor2
Copy link
Contributor

jtaylor2 commented Mar 17, 2024

The numbers are hardly meaningless. A 4 :1 ratio voltage sensor on a 3.3 Volt ADC input is 4 X 3.3-13.2 for the ratio. I don't find that meaningless. It lets me know the max voltage I can apply to that sensor. I find that a lot more useful than the weight which is meaningless to me, But why not have it both ways? I really don't see any reason to dumb it down.

Edit: And it's not just old documentation. The first link in my comment is to the current Frsky voltage sensor manual and the last is to the current Multimodule documentation.

@pfeerick pfeerick changed the title feat(telemetry): Modify Sensor Edit screens to show Ratio + Percentage feat(telemetry): modify Sensor Edit screens to show Ratio + Percentage Mar 19, 2024
@pfeerick pfeerick added the rebase needed A git rebase on top of the latest destination branch version is required. label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request rebase needed A git rebase on top of the latest destination branch version is required. UX-UI Related to user experience (UX) or user interface (UI) behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(telemetry): Edit Sensors: display the percentage (%) equivalent to ratio when scaling a sensor value
5 participants