Re: [RFC] Issues with Zephyr Sensors API and ways to resolve them
On Thu, 25 Jan 2018 14:16:20 +0000
"Nashif, Anas" <firstname.lastname@example.org> wrote:
Hi,Yes, the original author of Sensors API, Vlad Dogaru, replied on Github
and pointed that is the case
However, Linux uses milli-degrees for temperature, but we degrees.
When this interface was originally proposed, it tried toWe don't have problems with that, allowing for precision of one
millionth of a unit. Of all physical (well, let's say "environmental")
quantities, relative humidity is the least to worry about re:
precision - it's a challenge to find a sensor offering precision
of 0.1 unit (unit being a percent).
I do not think it is terribly bad how the units areThey aren't consistent, that's the problem. It's not a bug indeed, but
an inconsistency, which can only become more glaring going forward.
Even now, few have few confused samples and even one driver which mix
up milli-percents and percents.
So far, nobody seems to object to the change, and it seems that's last
reasonable chance to do it, to allow one release of "stability" before
the expected 1.12 LTS.
Thanks for the comments. Any thoughts on the 2 other points?
2. By extension, we may want to re-review unit of
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog