UVW 3 phases Brushless DC motor control

Dependencies:   QEI mbed-rtos mbed

Fork of BLDCmotor by manabu kosaka

Revision:
14:8e205264baa8
Parent:
13:791e20f1af43
Child:
15:427f5ae8e957
--- a/main.cpp	Sun Mar 03 09:09:34 2013 +0000
+++ b/main.cpp	Thu Jun 13 06:41:16 2013 +0000
@@ -79,7 +79,8 @@
 //  osPriorityError         =  0x84        ///< system cannot determine priority or thread has illegal priority
 
     // 指令速度
-    float  w_ref_req[2] = {20* 2*PI, 40* 2*PI};        // [rad/s](第2要素は指令速度急変後の指令速度)
+//    float  w_ref_req[2] = {20* 2*PI, 40* 2*PI};        // [rad/s](第2要素は指令速度急変後の指令速度)
+    float  w_ref_req[2] = {0.5* 2*PI, 0.5* 2*PI};        // [rad/s](第2要素は指令速度急変後の指令速度)
     // 指令dq電流位相
     float  beta_ref = 30*PI/180;   // [rad], 電流位相指令βを30度に
     float  tan_beta_ref1;
@@ -117,6 +118,8 @@
         il.idq_ref[0] = iqMAX/1.0;  // idをプラス、iqをゼロにして、
         il.idq_ref[1] = 0;          // 無負荷のときにθ=0とさせる。
 
+//pc2.scanf("%f",&debug[2]);
+debug[2]=3*2*PI*t*1;
 #ifdef OLD
         timerTS0();
         //current_loop(); // 電流制御マイナーループ(idq_ref to vuvw)