For educational purposes
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:7116cced0ada
- Child:
- 1:414699543271
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Mar 26 01:16:35 2014 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include "m3pi.h" + +m3pi m3pi; + +int main() { + + m3pi.locate(0,1); + m3pi.printf("Whatever"); + + wait(1.0); //wait 2 seconds + + m3pi.left_motor(-0.51); //foward at full speed + m3pi.right_motor(-0.35); + wait(5.0); + m3pi.stop(); + wait(0.5); + m3pi.left_motor(0.65); //foward at full speed + m3pi.right_motor(0.28); + wait(5.0); //wait one second + + + m3pi.stop(); + +} \ No newline at end of file