]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/sensors/AeroVane.h
Move NoMsp430GpioC out of tos/chips/msp430 and into tos/platforms/tmicore
[tinyos-2.x.git] / tos / platforms / tmirws / sensors / AeroVane.h
index d7571659bc29e37c1fcd7e488854e3ea003dba41..9c02b5c32d6940129908d19ef357b2237d4e3457 100644 (file)
 #ifndef AEROVANE_H
 #define AEROVANE_H
 
-/* Angular units are in sectors; see AeroVaneC for the number in use.
- * Speed units are in mph.
- */
+enum {
+  AEROVANE_VECTOR_NULL = 65535U, /* Null vector has this value as dir */
+};
 
 typedef struct {
-  uint16_t dir;
-  uint16_t speed;
+  uint16_t dir;                /* Vane position. 0...1023; 360 degrees = 1024 */
+  uint16_t speed;      /* Anemometer revolutions over reading period. */
 } aerovector_t;
 
 typedef struct {