Updated version of RenBuggy Servo that can accept instructions based on time or distance.
Fork of RenBuggyServo by
Revision 8:7af88a6dbb05, committed 2014-04-03
- Comitter:
- ELloyd
- Date:
- Thu Apr 03 09:47:03 2014 +0000
- Parent:
- 7:566d6deaceac
- Commit message:
- Made a main.cpp
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 566d6deaceac -r 7af88a6dbb05 main.cpp --- /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(); +}
diff -r 566d6deaceac -r 7af88a6dbb05 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 03 09:47:03 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7d30d6019079 \ No newline at end of file