Updated version of RenBuggy Servo that can accept instructions based on time or distance.

Dependencies:   PinDetect mbed

Fork of RenBuggyServo by Renishaw

Files at this revision

API Documentation at this revision

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