Microduino的cube小车。

Dependencies:   mbed-rtos mbed

Revision:
4:0670023d3f36
Parent:
3:e4ac7c1a14de
--- a/Microduino_Motor.h	Fri May 27 01:44:31 2016 +0000
+++ b/Microduino_Motor.h	Sat May 28 05:09:18 2016 +0000
@@ -32,7 +32,7 @@
     void Driver(int16_t _motor_driver);
     void Free();
     void Brake();
-    int16_t GetData(int16_t _throttle, int16_t _steering, bool _dir);
+    int16_t GetData(int16_t _throttle, int16_t _steering, uint8_t _dir);
 private:
     uint8_t motorIndex;               // index into the channel data for this key
     float fix;
@@ -40,7 +40,7 @@
 protected:
     pwmout_t _pwmA;
     pwmout_t _pwmB;
-    uint16_t _period_us;
+    int _period_us;
 };
 
 #endif
\ No newline at end of file