For educational purposes
Dependencies: mbed
main.cpp
- Committer:
- chrisell512
- Date:
- 2014-03-26
- Revision:
- 0:7116cced0ada
- Child:
- 1:414699543271
File content as of revision 0:7116cced0ada:
#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(); }