X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2Fsensors%2FAeroVaneReadC.nc;h=8475bdac4fa19e3987fbd33a71d5e46e6212b833;hb=69fc4c14eb331474d8c6654eebcf4147b7780ec8;hp=01fa7d50d65eb3133d9ba964626d51c29584a31c;hpb=7373db28ff8b66edda83925025fbffea6ed88148;p=tinyos-2.x.git diff --git a/tos/platforms/tmirws/sensors/AeroVaneReadC.nc b/tos/platforms/tmirws/sensors/AeroVaneReadC.nc index 01fa7d50..8475bdac 100644 --- a/tos/platforms/tmirws/sensors/AeroVaneReadC.nc +++ b/tos/platforms/tmirws/sensors/AeroVaneReadC.nc @@ -40,27 +40,21 @@ configuration AeroVaneReadC { provides interface Notify; } implementation { -#if 0 - components new AeroVaneReadP(28800U); -#else - components new AeroVaneReadP(900); -#endif + components new AeroVaneReadP(900); /* 28800 clocks on 32768 Hz crystal */ Notify = AeroVaneReadP; -#if 0 - components new Alarm32khz16C(); - AeroVaneReadP.Alarm -> Alarm32khz16C; -#else components new TimerMilliC(); AeroVaneReadP.Timer -> TimerMilliC; -#endif components WindVaneReadC; AeroVaneReadP.Read -> WindVaneReadC; components AnemometerReadC; AeroVaneReadP.AnemometerControl -> AnemometerReadC.StdControl; - AeroVaneReadP.Count -> AnemometerReadC; + AeroVaneReadP.Revolutions -> AnemometerReadC; + + components new AverageAngleC(); + AeroVaneReadP.Average -> AverageAngleC; components new StateC(); AeroVaneReadP.State -> StateC;