TB6612FNG用のモータコントロールライブラリ

Dependents:   BLE_WALLBOT_BLE net_trap_noBLE MoveTest Avoid ... more

Revision:
1:051a7ecff13e
Parent:
0:810f315ba3dc
--- a/TB6612.h	Tue Oct 23 15:24:30 2012 +0000
+++ b/TB6612.h	Mon Nov 12 16:39:11 2012 +0000
@@ -14,9 +14,9 @@
 class TB6612 {
 public:
     TB6612(PinName pwm, PinName fwd, PinName rev);
-    void speed(float speed);
-    void move(float speed , float time);
-    void operator= ( float value )
+    void speed(int speed);
+    void move(int speed , int time);
+    void operator= ( int value )
     {
         speed(value);
     }
@@ -25,11 +25,6 @@
     PwmOut _pwm;
     DigitalOut _fwd;
     DigitalOut _rev;
-    Timeout timer;
-    float    bspeed;
-    bool     timer_flag;
-    void timeout();
-
 };
 
 #endif