Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WeatherMeters by
WeatherMeters Class Reference
WeatherMeters class. More...
#include <WeatherMeters.h>
Public Member Functions | |
| WeatherMeters (PinName p_anemometer, PinName p_windvane, PinName p_raingauge, Weather_mode w_mode=Weather_auto) | |
| Initializes interface. | |
| float | get_windspeed () |
| Get wind speed. | |
| float | get_windvane () |
| Get wind vane. | |
| float | get_raingauge () |
| Get rain gauge. | |
Detailed Description
WeatherMeters class.
Definition at line 29 of file WeatherMeters.h.
Constructor & Destructor Documentation
| WeatherMeters | ( | PinName | p_anemometer, |
| PinName | p_windvane, | ||
| PinName | p_raingauge, | ||
| Weather_mode | w_mode = Weather_auto |
||
| ) |
Initializes interface.
- Parameters:
-
p_anemometer port of Anemometer p_windvane port of Wind vane (analog) p_raingauge parameter of Rain gauge w_mode parameter of Anemometer
Definition at line 36 of file WeatherMeters.cpp.
Member Function Documentation
| float get_raingauge | ( | ) |
Get rain gauge.
- Returns:
- wind speed (mm/h) average from 12sample/60min (update 5min)
Definition at line 98 of file WeatherMeters.cpp.
| float get_windspeed | ( | ) |
Get wind speed.
- Returns:
- wind speed (m/s) mode=Weather_auto: average from 12sample/2sec mode=Weather_manual: average from last measurement
Definition at line 58 of file WeatherMeters.cpp.
| float get_windvane | ( | ) |
Get wind vane.
- Returns:
- wind vane (`) mode=Weather_auto: wind speed at the highest mode=Weather_manual: current wind vane
Definition at line 78 of file WeatherMeters.cpp.
Generated on Thu Jul 21 2022 06:05:44 by
1.7.2
