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:3b73c5cb6518, committed 2020-11-17
- Comitter:
- oguro
- Date:
- Tue Nov 17 00:42:33 2020 +0000
- Parent:
- 1:a6f580a771a9
- Commit message:
- New Sine wave with Hall 2020 10 17
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Oct 21 06:05:36 2017 +0000
+++ b/main.cpp Tue Nov 17 00:42:33 2020 +0000
@@ -149,9 +149,9 @@
if((Vr_adc>0.15f)&&(q==0)){
while(q<50){
- mypwmA.write(0.8f); //0.9
+ mypwmA.write(0); //0.8f
mypwmB.write(0);
- mypwmC.write(0);
+ mypwmC.write(0.8f);
wait_ms(START);
mypwmA.write(0);
@@ -159,9 +159,9 @@
mypwmC.write(0);
wait_ms(START);
- mypwmA.write(0);
+ mypwmA.write(0.8f);
mypwmB.write(0);
- mypwmC.write(0.8f);
+ mypwmC.write(0);//0.8f
wait_ms(START);
q++;
}