メカナムのコード

Dependencies:   mbed Eigen

Revision:
0:ee7e9405e1c7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shared/Mbed_MD/Mbed_MD.h	Wed Apr 14 07:26:19 2021 +0000
@@ -0,0 +1,23 @@
+#ifndef MBED_MD_H_
+#define MBED_MD_H_
+
+#include <mbed.h>
+#include <shared/MD/MD.h>
+
+class Mbed_MD : public MD
+{
+public:
+    Mbed_MD(PinName pwmPin,PinName dirPin);
+    virtual void drive(double);
+    virtual void brake(double);
+    virtual void free();
+
+private:
+    PwmOut _pwmOut;
+    DigitalOut _dirOut;
+};
+
+#endif
+    
+    
+    
\ No newline at end of file