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.
Dependencies: Demo_TEST3 QEI biquadFilter mbed
Fork of Demo_TEST3 by
Revision 7:b53f0c4cf2b9, committed 2018-10-26
- Comitter:
- Hubertus
- Date:
- Fri Oct 26 10:24:09 2018 +0000
- Parent:
- 6:1f722bf6a89b
- Child:
- 8:1efebfebe733
- Commit message:
- 3 motoren, 3 EMG signalen, verschillende snelheden. 26-10-2018
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 26 08:53:26 2018 +0000 +++ b/main.cpp Fri Oct 26 10:24:09 2018 +0000 @@ -17,7 +17,7 @@ DigitalIn zeromax(PTC6); // Button used for switching between zero and max Ticker emgSampleTicker; // Ticker for sample frequency -Servo myservo(D13); +Servo myservo(D9); DigitalOut motor1direction(D7); PwmOut motor1control(D6); @@ -250,17 +250,21 @@ if (movagL > thresholdL) - { motor1control.write(0.8); + { motor1control.write(0.12); + wait(0.1); } else { motor1control.write(0); + wait(0.1); } if (movagR > thresholdR) { motor2control.write(0.8); + wait(0.1); } else { motor2control.write(0); + wait(0.1); }