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:
- 0:21a4e1337957
- Child:
- 2:ecf6419ab06c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/AnemoWS1080.h Mon May 20 04:44:20 2019 +0000
@@ -0,0 +1,22 @@
+#ifndef MBED_AnemoWS1080_H
+#define MBED_AnemoWS1080_H
+
+#include "mbed.h"
+
+#define PI 3.14159265358979323846
+#define R_HELICE 0.07//En mètre, Inexacte, à mesurer précisément
+#define TEMPS_DE_MESURE 5.0
+
+class AnemoWS1080
+{
+ public:
+ AnemoWS1080(PinName digital_pin, float coeff_etalon);
+ bool read();
+ float vitesse;
+ private:
+ Timer t;
+ DigitalIn anemo;
+ float coef_etalon;
+};
+
+#endif
\ No newline at end of file