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 2:0146f9f7701c, committed 2019-06-08
- Comitter:
- oguro
- Date:
- Sat Jun 08 03:02:33 2019 +0000
- Parent:
- 1:ce18261eee75
- Commit message:
- Open Vector sin
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/main.cpp	Fri Dec 22 07:35:00 2017 +0000
+++ b/main.cpp	Sat Jun 08 03:02:33 2019 +0000
@@ -276,9 +276,9 @@
         Va=cos(Wt)*Vd-sin(Wt)*Vq;
         Vb=sin(Wt)*Vd+cos(Wt)*Vq;
           
-       du=(Va*zet);
-       dv=((Va*cos23+Vb*sin23)*zet);
-       dw=((Va*cos43+Vb*sin43)*zet); 
+       du=(Va*zet+0.5);
+       dv=((Va*cos23+Vb*sin23)*zet+0.5);
+       dw=((Va*cos43+Vb*sin43)*zet+0.5); 
       
        mypwmA.write(du);
        mypwmB.write(dv);