Weather Meters (Sparkfun) http://mbed.org/users/okini3939/notebook/weather-platform/

Dependents:   WeatherStation Wetterstation

Files at this revision

API Documentation at this revision

Comitter:
okini3939
Date:
Fri Jun 03 14:34:54 2011 +0000
Parent:
1:fa262295fa7e
Commit message:

Changed in this revision

WeatherMeters.cpp Show annotated file Show diff for this revision Revisions of this file
WeatherMeters.h Show annotated file Show diff for this revision Revisions of this file
diff -r fa262295fa7e -r 6a62f29b1bb5 WeatherMeters.cpp
--- a/WeatherMeters.cpp	Thu Jan 06 13:23:24 2011 +0000
+++ b/WeatherMeters.cpp	Fri Jun 03 14:34:54 2011 +0000
@@ -1,6 +1,6 @@
 /*
  * mbed library to use a Sparkfun Weather Meters
- * Copyright (c) 2010 Hiroshi Suga
+ * Copyright (c) 2011 Hiroshi Suga
  * Released under the MIT License: http://mbed.org/license/mit
  */
 
@@ -48,6 +48,8 @@
 /**
  * @brief Get wind speed
  * @return wind speed (m/s)
+ * mode=Weather_auto: average from 12sample/2sec
+ * mode=Weather_manual: average from last measurement
  */
 float WeatherMeters::get_windspeed() {
     float s;
@@ -66,6 +68,8 @@
 /**
  * @brief Get wind vane
  * @return wind vane (`)
+ * mode=Weather_auto: wind speed at the highest
+ * mode=Weather_manual: current wind vane
  */
 float WeatherMeters::get_windvane() {
     int i;
@@ -85,6 +89,7 @@
 /**
  * @brief Get rain gauge
  * @return wind speed (mm/h)
+ * average from 12sample/60min (update 5min)
  */
 float WeatherMeters::get_raingauge() {
     return (float)raingauge * 0.2794; // 0.2794mm/Hz
diff -r fa262295fa7e -r 6a62f29b1bb5 WeatherMeters.h
--- a/WeatherMeters.h	Thu Jan 06 13:23:24 2011 +0000
+++ b/WeatherMeters.h	Fri Jun 03 14:34:54 2011 +0000
@@ -1,6 +1,6 @@
 /*
  * mbed library to use a Sparkfun Weather Meters
- * Copyright (c) 2010 Hiroshi Suga
+ * Copyright (c) 2011 Hiroshi Suga
  * Released under the MIT License: http://mbed.org/license/mit
  */