![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Drive wheeled robot platform
Fork of mbed_blinky by
Revision 9:ada1a8a81354, committed 2017-09-25
- Comitter:
- RichardAmes
- Date:
- Mon Sep 25 22:50:24 2017 +0000
- Parent:
- 8:840b3b80cfa2
- Commit message:
- initial check in
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon May 22 21:17:29 2017 +0000 +++ b/main.cpp Mon Sep 25 22:50:24 2017 +0000 @@ -59,19 +59,18 @@ } int main() -{ +{ + int i; + drive_init(); - move(0, 0, 500); - move(40, 40, 500); - move(0, 100, 300); - move(40, 40, 500); - move(0, 100, 300); - move(40, 40, 500); - move(0, 100, 300); - move(40, 40, 500); - move(0, 100, 300); - + for (i = 0; i < 4; i++) + { + move(0, 0, 500); + move(-50, 50, 1000); + move(0, 0, 500); + move(50, -50, 1000); + } while(1) { move(0, 0, 500);