Updated version of RenBuggy Servo that can accept instructions based on time or distance.
Fork of RenBuggyServo by
Diff: main.cpp
- Revision:
- 8:7af88a6dbb05
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 03 09:47:03 2014 +0000 @@ -0,0 +1,14 @@ +#include "Car.h" +#include "mbed.h" + +Car BuggyName(p10, p25); + +int main () +{ + BuggyName.forwards_timed(3.0); + BuggyName.setDirection(45); + BuggyName.forwards_timed(2.5); + BuggyName.setDirection(-45); + BuggyName.forwards_timed(4.0); + BuggyName.stop(); +}