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.
Dependents: AnemometreWs1080_lecture
Diff: AnemoWS1080.h
- Revision:
- 2:ecf6419ab06c
- Parent:
- 0:21a4e1337957
--- a/AnemoWS1080.h Mon May 20 08:20:48 2019 +0000
+++ b/AnemoWS1080.h Sat Jun 29 16:53:44 2019 +0000
@@ -4,18 +4,25 @@
#include "mbed.h"
#define PI 3.14159265358979323846
-#define R_HELICE 0.07//En mètre, Inexacte, à mesurer précisément
+#define R_HELICE 0.07//Rayon des hélices en mètre
#define TEMPS_DE_MESURE 5.0
class AnemoWS1080
{
public:
+ //notre constructeur
AnemoWS1080(PinName digital_pin, float coeff_etalon);
+ //Permet de lire l'anemomètre et de stocker la vitesse du vent en m/s
+ // dans la variable publique vitesse
bool read();
+ //Variable publique stockant la vitesse vent en m/s au niveau de l'anemomètre
float vitesse;
private:
+ //appel du constructeur de la classe timer
Timer t;
+ //Appel du constructeur DigitalIn pour lire le port de la girouette WS1080
DigitalIn anemo;
+ //variable privé pour stocker le coeff etalon
float coef_etalon;
};