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

Telemetry: add constants to calculated telemetry and enable negative Ratio #4732

Closed
blopa1961 opened this issue Mar 13, 2024 · 3 comments
Closed
Labels
enhancement ✨ New feature or request

Comments

@blopa1961
Copy link

blopa1961 commented Mar 13, 2024

This request replaced by #4785 please close it.

@blopa1961 blopa1961 added the enhancement ✨ New feature or request label Mar 13, 2024
@frankiearzu
Copy link
Contributor

frankiearzu commented Mar 13, 2024

@blopa1961 ratio can be use to decrease the value. Any value lower than 25.5 (or 255 on some GUI with no decimal) decreases the value. 25.5 = 100%, if you want / 10 (or 10%), use ratio 2.5 (25 on GUI with no decimal). In 2.11 we have an enhancement to the GUI to make ratio easier to understand. #4648

Question: What protocol do you use to connect to your Matek?? What sensor ID?? That 1800 instead of 180.0 seems that the precision of 1 (1 decimal point) is not setup in the processing of the protocol telemetry. Internally, all telemetry comes as integers, and depending of the internal def of the sensor, it will know if it is Prec1 (1 decimal). So a raw integer 1800 becomes 180.0 in the GUI. This is not affected by the Precision on the sensor setup GUI (that will auto-adjust the value as needed), the internal definition needs to be right/correct to start.

@blopa1961
Copy link
Author

blopa1961 commented Mar 13, 2024

I tested iNav with the G474 and the horizon is wrong (barely moves) with the precision to 1 decimal, it actually expects -1800 to 1800 and -900 to 900.

This means I will need to use a 255 ratio with my SR8...

@frankiearzu
Copy link
Contributor

frankiearzu commented Mar 14, 2024

Ratio=0 (or --) means skip the scaling logic, so is the same as 100%. I agree about knowing what ratio is 100% (25.5) that's why we are adding the percent number to the GUI. Originally Ratio was only for voltages, but now I see a lot more different uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants