akiyoshi oguro
/
Nucleo_Z_SIN_hf_BLDC
BLDC Z Transfer sin
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 |
diff -r a6f580a771a9 -r 3b73c5cb6518 main.cpp --- 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++; }