zephyr/samples
Paul Sokolovsky b7623a85b0 sensors: Redefine SENSOR_CHAN_HUMIDITY in percents, not milli-percents.
Based on the discussion in #5693, the reason why humidity was defined
in milli-percent was likely following Linux which defines it as such
in its sensor subsystem:
http://elixir.free-electrons.com/linux/latest/source/Documentation/ABI/testing/sysfs-bus-iio#L263

However, Linux defines temperature in milli-degrees either, but
Zephyr uses degrees (similarly for most other quantities). Typical
sensor resolution/precision for humidity is also on the order of 1%.

One of the existing drivers, th02.c, already returned values in
percents, and few apps showed it without conversion and/or units,
leading to confusing output to user like "54500".

So, switching units to percents, and update all the drivers and
sample apps.

For few drivers, there was also optimized conversion arithmetics
to avoid u64_t operations. (There're probably more places to
optimize it, and temperature conversion could use such optimization
too, but that's left for another patch.)

Fixes: #5693

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2018-02-05 14:10:39 +01:00
..
application_development/external_lib sample: external_lib: support console harness 2018-01-25 04:45:35 +05:30
basic samples: button: Fix button sample GPIO for nRF52 2018-01-29 10:23:36 +01:00
bluetooth Bluetooth: Remove redundant AD parsing check 2018-01-31 07:01:10 -08:00
boards sensors: Redefine SENSOR_CHAN_HUMIDITY in percents, not milli-percents. 2018-02-05 14:10:39 +01:00
cpp_synchronization sample: cpp_synchronization: support console harness 2018-01-25 04:45:35 +05:30
drivers doc: fix ReST heading underlines 2018-02-01 19:33:39 -08:00
grove samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
hello_world samples: hello_world: disbale asserts on single thread (REVERTME) 2018-01-25 04:45:35 +05:30
mpu drivers: flash: NXP k6x/kw2xd: Convert to use device tree 2018-01-29 16:34:49 -06:00
net samples: net: Add config and enable CI for OpenThread on nRF52840 2018-01-29 22:42:03 -05:00
nfc/nfc_hello tests: nfc_hello: remove filter and support harness 2018-01-25 04:45:35 +05:30
philosophers samples: philosophers: test different configurations 2018-01-25 04:45:35 +05:30
sensor sensors: Redefine SENSOR_CHAN_HUMIDITY in percents, not milli-percents. 2018-02-05 14:10:39 +01:00
subsys test: shell: native_posix also supports shell 2018-02-02 07:48:46 -08:00
synchronization sample: synchronization: support console harness 2018-01-25 04:45:35 +05:30
testing tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
kernel.rst
samples.rst samples: drivers: add LPD8806 sample application 2017-10-28 13:23:30 -04:00