]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Enhancements to AeroVaneReadC.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Mon, 9 Nov 2009 19:30:52 +0000 (19:30 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:49 +0000 (20:01 -0700)
commitde3bf162a7f3764ba43088c13e9e656c2a9ae4f1
tree52b256273fed94eb69e8733ccd90dd1dc409a811
parent0f58276b9e5d322d87624bd7c11ff7eb5c2c8b57
Enhancements to AeroVaneReadC.

* Anemometer is read immediately after the Timer fires to reduce jitter.
* Count interface is renamed Revolutions to be more meaningful.
* m_count is now uint8_t to reflect a more reasonable real life range.
* Direction data is returned no as degrees but as a 10-bit unsigned value.
* m_sum accumulates the correct, updated angle values.
* Rounding is done properly when m_sum is negative.
tos/platforms/tmirws/sensors/AeroVaneReadC.nc
tos/platforms/tmirws/sensors/AeroVaneReadP.nc