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.
Diff: main.cpp
- Revision:
- 2:0146f9f7701c
- Parent:
- 1:ce18261eee75
--- 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);