-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Multiply or Divide telemetry values - particularly voltage #3030
Comments
Inputs allow telemetry sources and multiplication. Division is as always multiplication by the inverse. So setting a scale in an input of 33% is similar to dividing by 100/33% = 3. Can do for any number of cells. But.... Indeed, it then becomes an input and is not listed as telemetry. I would not complain if the possibility to scale telemetry on inputs is abandoned and shifted to the sensor setup. Makes much more sense. |
I tried creating an input with the telemetry battery voltage as input and a scale of 25%, but it always read out "25". the input was 1530 (15.3V). I assume that is because the max of an input is always 100, and it clamped the 1530 to 100 and then mult by 25%? I also tried a custom 25% rate curve, and same result. So if someone DOES know how to do it, that's great - please tell me. But otherwise, scaling the telemetry sensor values is still needed/welcome |
The scale factor is providing 10^n factor. I'll check later if I can find a reference or make some instructions. Weekend and family business... |
Thanks @lshems ! I've tried everything I can think of and can't figure it out. It seems like it would need a negative value of scale to turn 1,520 into 3.8 (or even 380), and negative values of scale are not supported. Looking forward to your guidance! |
I think there is something else wrong. Send me a PM on rcgroups. Lshems. with your whatsapp phone number. And i'll see if i can help. |
Ratio is not a very good solution. I can put in a ratio of 640 to get a close approximation of the value, but off by several orders of magnitude. and because ratio cannot be a decimal or a fraction, you cannot divide a number with it. |
I do agree this entire sensor scaling needs to be simplified |
Dave, check 2.9.4. We did a lot of work to fix scaling in 2.9.3-2.9.4.. there were hiding x10, /10, etc. that I think we fixed. The value of 25.5 (previously displayed as 255 in 2.9.2 and before, and now consistent with companion ) means 100% I Proposed an improvement to show % too, so in your case that you want to do 25% of a value, is easy to see, Take a look at #4648, there is a compiled TX16 2.9.4 + this change is the pull request. |
Hi everyone, I'd like to add a possibly related request: The ability to divide one telemetry value by another e.g. [power in] / [vertical speed]. An alternative implementation would be an operator to take the inverse of a telemetry value (which could in turn be used as a multiplier for another value). Is this request relevant in this ticket? I think so but am not completely sure. Kindly, |
@VancouverUmbrella |
Thank you! |
Is there an existing issue for this feature request?
Is your feature request related to a problem?
Problem: Telemetry on some models only measures total battery voltage, but modelers think in terms of per-cell voltage.
Describe the solution you'd like
It would be nice to be able to divide a measured telemetry value like voltage by a hard coded (or set by SF or GV or Switch) number (like number of cells). Similar to what happens with RPM. in fact, it could be dedicated functionality when you select voltage as the units, that then lets you enter a constant, SF, or GV as the number of cells.
Alternatively, a more general purpose mult/div of telemetry value with the same options would work.
Finally, a 3rd possibility is to allow a mix to use a telemetry value as an input? Lots of ways to solve this problem. We just need one.
Describe alternatives you've considered
Additional context
none
The text was updated successfully, but these errors were encountered: