Hello world program that just gets CustomExplorerRobot moving.
Dependencies: CustomExplorerRobot mbed
Diff: main.cpp
- Revision:
- 0:b14e99f78c69
diff -r 000000000000 -r b14e99f78c69 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Feb 27 09:21:05 2016 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "CustomExplorerRobot.h"
+
+CustomExplorerRobot cer;
+
+int main() {
+
+ wait(0.5f);
+ cer.forward(0.5f);
+ wait(0.5f);
+ cer.left(0.5f);
+ wait(0.5f);
+ cer.backward(0.5f);
+ wait(0.5f);
+ cer.right(0.5f);
+ wait(0.5f);
+ cer.stop();
+
+ return 0;
+}
Custom Explorer Robot