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.
Diff: DRIBBLE.h
- Revision:
- 31:61f9fca504dd
diff -r 4e7cf52ac2dd -r 61f9fca504dd DRIBBLE.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DRIBBLE.h Fri May 13 06:26:53 2022 +0000
@@ -0,0 +1,31 @@
+/**
+ * @file MX12.h
+ * @brief this header file contains all required definitions and
+ * basic utilities functions to manage au bus of servomotor
+ * Dynaminel MX12
+ */
+#ifndef MBED_DRIBBLE_H_
+#define MBED_DRIBBLE_H_
+
+#include "mbed.h"
+class dribbleur
+{
+public:
+ dribbleur(PinName tx = D15);
+
+ void SetSpeed(int pourcentage);
+ // Permet de choisir une fraction de la vitesse maximal du dribbleur
+
+ void test();
+ // permet de vérifier que le bribbleur est opérationnel
+
+ void SetSpeedSmooth();
+ // permet d'atteindre la vitesse de croisière de manière smooth
+
+ void eteindre_moteurs();
+ // permet d'enlever le couple dans les moteurs
+
+protected:
+ PwmOut _moteurDribble;
+};
+#endif
\ No newline at end of file