From: smckown Date: Wed, 4 Nov 2009 19:17:57 +0000 (+0000) Subject: Widen the dead band detect range again. X-Git-Tag: release/2.1.0-2~21 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=973d5b8179655405805c815f03d0b91ac35075f5 Widen the dead band detect range again. We leaked a false direction of 210 degrees (36 sectors) when in the dead band. --- diff --git a/tos/platforms/tmirws/sensors/WindVaneReadP.nc b/tos/platforms/tmirws/sensors/WindVaneReadP.nc index 2076e239..69d97c97 100644 --- a/tos/platforms/tmirws/sensors/WindVaneReadP.nc +++ b/tos/platforms/tmirws/sensors/WindVaneReadP.nc @@ -65,7 +65,7 @@ implementation * the extra logic. */ DEAD_BEGIN = 6000, /* 4 12-bit ADC readings; about 120 degrees */ - DEAD_END = 9000, /* About 198 degrees */ + DEAD_END = 10000, /* About 198 degrees */ DEAD_THRESH = 14472, /* > when checking means in dead zone */ };