]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Widen the dead band detect range again.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Wed, 4 Nov 2009 19:17:57 +0000 (19:17 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:47 +0000 (20:01 -0700)
We leaked a false direction of 210 degrees (36 sectors) when in the dead band.

tos/platforms/tmirws/sensors/WindVaneReadP.nc

index 2076e2390e2133b9280d46b6303f085bb965fddf..69d97c978c23d8abd97fd8fa555802f02bcc49df 100644 (file)
@@ -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 */
   };