![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
moves around
Fork of m3pi_HelloWorld by
Revision 8:379aed8af55f, committed 2018-02-26
- Comitter:
- devantormey
- Date:
- Mon Feb 26 22:09:37 2018 +0000
- Parent:
- 7:d0689e8f23bf
- Commit message:
- renamed;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri May 13 10:51:57 2011 +0000 +++ b/main.cpp Mon Feb 26 22:09:37 2018 +0000 @@ -6,18 +6,25 @@ int main() { m3pi.locate(0,1); - m3pi.printf("LO World"); + m3pi.printf("Sup DSP"); wait (2.0); - m3pi.forward(0.5); // Forward half speed + m3pi.forward(0.25); // Forward half speed wait (0.5); // wait half a second - m3pi.left(0.5); // Turn left at half speed + m3pi.right(0.25); // Turn left at half speed + wait (0.25); // wait half a second + m3pi.forward(0.5);// Backward at half speed wait (0.5); // wait half a second - m3pi.backward(0.5);// Backward at half speed - wait (0.5); // wait half a second - m3pi.right(0.5); // Turn right at half speed - wait (0.5); // wait half a second - + m3pi.right(0.25); // Turn right at half speed + wait (0.25); // wait half a second + m3pi.forward(0.5);// Backward at half speed + wait (0.5); + m3pi.right(0.25); // Turn left at half speed + wait (0.25); + m3pi.forward(0.5);// Backward at half speed + wait (0.5); + m3pi.right(0.25); // Turn left at half speed + wait (0.25); m3pi.stop(); } \ No newline at end of file