Brushless motor control library with TB6612FNG

Dependents:   brushless_TB6612FNG gimbalController_brushless_IMU

Revision:
1:b52603b6a822
Parent:
0:fcf00057b1a3
Child:
2:32d402d0ee1e
--- a/brushlessController_TB6612FNG.cpp	Fri Jul 17 11:29:51 2015 +0000
+++ b/brushlessController_TB6612FNG.cpp	Fri Jul 17 12:16:19 2015 +0000
@@ -61,7 +61,7 @@
 *
 * @variables: 
 *   dir: Direction of the motor
-*   delay_time: Time delay between steps
+*   delay_time (us): Time delay between steps
 */
 void brushlessControl(bool dir, int delay_time)
 {
@@ -92,5 +92,5 @@
         if(step[k] == sinArraySize - 1)   step[k] = 0; 
         if(step[k] < 0)                   step[k] = sinArraySize - 1;
     } 
-    wait_ms(delay_time);  
+    wait_us(delay_time);  
 }
\ No newline at end of file