X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2Fsensors%2FAeroVane.h;h=9c02b5c32d6940129908d19ef357b2237d4e3457;hb=0929af16aa303ba931e5cfa007733f9d6327664e;hp=d7571659bc29e37c1fcd7e488854e3ea003dba41;hpb=7373db28ff8b66edda83925025fbffea6ed88148;p=tinyos-2.x.git diff --git a/tos/platforms/tmirws/sensors/AeroVane.h b/tos/platforms/tmirws/sensors/AeroVane.h index d7571659..9c02b5c3 100644 --- a/tos/platforms/tmirws/sensors/AeroVane.h +++ b/tos/platforms/tmirws/sensors/AeroVane.h @@ -36,13 +36,13 @@ #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 {