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: Encoder HIDScope MODSERIAL mbed QEI biquadFilter
Revision 1:0a89274e1279, committed 2015-09-23
- Comitter:
- bscheltinga
- Date:
- Wed Sep 23 08:57:01 2015 +0000
- Parent:
- 0:fe3896c6eeb0
- Child:
- 2:e6c1bdc5639e
- Child:
- 3:2785a945b654
- Child:
- 7:f01efd933bfd
- Commit message:
- Motor 1s CCW en 1s CW
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Sep 23 08:40:48 2015 +0000 +++ b/main.cpp Wed Sep 23 08:57:01 2015 +0000 @@ -11,13 +11,10 @@ int main() { while(true) { - if (button.read() == 0) { - motor2direction = 1; - motor2speed = 0.55f; - motor2speed = 0.3f; - } else { - motor2direction = 0; - motor2speed = 0.3f; - } + motor2direction = 1; + motor2speed = 0.5f; + wait (1); + motor2direction = 0; + wait (1); } } \ No newline at end of file