analogMeter with non-zero scale start #2171
Unanswered
jmuellers
asked this question in
Q&A - General
Replies: 1 comment 3 replies
-
The meter needle always moves from 0.0 to the fullscale value (40.0 in this case). So the needle position is set be using a value from 0.0 to 40.0. In the examples there is a floaring point mapValue(...) function that can be used to map 10.0 to 50.0 into the a new value in the range 0.0 to 40.0, this new value is used to update the meter needle. In your use case it would be easier to simply subtract 10.0 and pass to the meter function. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
when using analogMeter with non-zero start value, it does not behave as expected.
places the needle as expected.
does not place the needle as expected.
How to treat this situation?
Is it not foreseen?
Beta Was this translation helpful? Give feedback.
All reactions