小日向さんのMDライブラリ
Dependents: 00_yotsuba 10_motor-test 00_yotsuba 200_yotsuba_21 ... more
Revision 10:4c656817ca59, committed 2022-06-11
- Comitter:
- THtakahiro702286
- Date:
- Sat Jun 11 07:21:16 2022 +0000
- Parent:
- 5:89c4237ef94a
- Commit message:
- serial delete
Changed in this revision
kohiMD.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 89c4237ef94a -r 4c656817ca59 kohiMD.cpp --- a/kohiMD.cpp Thu Mar 04 09:48:02 2021 +0000 +++ b/kohiMD.cpp Sat Jun 11 07:21:16 2022 +0000 @@ -8,12 +8,13 @@ pwmMD.period(1.0/25000.0); pwmMD.write(0.5); // threadMD.start(callback(this, &HaseMD::MDloop)); - drive.attach(callback(this,&KohiMD::MDloop),10ms); +// drive.attach(callback(this,&KohiMD::MDloop),10ms); } void KohiMD::setSpeed(double speed_) { speed = speed_; + MDloop(); // pc.printf("%f \n\r",_pwmMD); }