]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Teach aerovector_t that it can be null, via a special value in its dir member.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Mon, 9 Nov 2009 19:30:59 +0000 (19:30 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:51 +0000 (20:01 -0700)
tos/platforms/tmirws/sensors/AeroVane.h

index 3e90ef396845b37493abb610f59113cbde2c0417..9c02b5c32d6940129908d19ef357b2237d4e3457 100644 (file)
 #ifndef AEROVANE_H
 #define AEROVANE_H
 
+enum {
+  AEROVANE_VECTOR_NULL = 65535U, /* Null vector has this value as dir */
+};
+
 typedef struct {
   uint16_t dir;                /* Vane position. 0...1023; 360 degrees = 1024 */
   uint16_t speed;      /* Anemometer revolutions over reading period. */