Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:0768eefd7892, committed 2018-03-06
- 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;