akiyoshi oguro / Mbed 2 deprecated Vector_sin_drive_F302R8

Dependencies:   mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
oguro
Date:
Tue Mar 06 07:55:26 2018 +0000
Parent:
0:ce0449e386ce
Commit message:
Vector sin Control

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ce0449e386ce -r 0768eefd7892 main.cpp
--- a/main.cpp	Sat Feb 24 08:25:42 2018 +0000
+++ b/main.cpp	Tue Mar 06 07:55:26 2018 +0000
@@ -539,14 +539,9 @@
         dth=(Vd-0.11f*(idq[0])+Wz*0.018E-3*(idq[1]))/(Wz*phm); // Vd 0.018E-3
         eth=asin(dth);
      
-      /*****PID θ *****/
-       // PLL=(Speed/100); //7 21 28
-        PLL=1.0; //Speed*2*PI/(60*7); //7  //2
-        //  PLL=W/Wz; 
-        //PLL=30; //30
-        //float WPLL=150.0; // 170
-        float as,bs,cs,works[2];
-       // float kps=PLL,kis=PLL*PLL/5.0,kds=0.0;  
+      /*****PID θ *****/   
+        //PLL    
+        float as,bs,cs,works[2];  
         float kps=5.0,kis=2.0,kds=0.0;
         float dts=1.0E-3;//1.0E-6
          Xsi=0.0-eth;