動作確認済み

Dependents:   NewMD2 NewMD3

Revision:
1:b85088467ae0
Parent:
0:010c6f6ac7c0
Child:
2:3d70888e91c6
--- a/GMD.hpp	Fri Jul 01 06:29:36 2016 +0000
+++ b/GMD.hpp	Sat Jul 02 06:16:41 2016 +0000
@@ -4,6 +4,7 @@
 #include "mbed.h"
 #include "FastPWM.h"
 
+template <size_t MIN, size_t MAX>
 class GMD {
 public:
     GMD(PinName p0, PinName p1, PinName shut_down);
@@ -16,11 +17,13 @@
 private:
     static const float _frequency_to_tick_coeff;
     static const uint32_t _default_frequency_kHz;
-    static const float _duty_upper_limit;
-    static const float _duty_lower_limit;
 
     FastPWM* _pwm[2];
     DigitalOut _shut_down;
 };
 
+#include "GMD_impl.hpp"
+
+typedef GMD<0, 100> basic_motor_driver;
+
 #endif