First test programme for the RenBuggy

Dependencies:   SevenSegmentDisplay mbed

Fork of Renbed_Buggy_Basics by Renishaw

Revision:
0:23373ebd6d3a
Child:
3:152595d33544
diff -r 000000000000 -r 23373ebd6d3a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 21 08:59:08 2016 +0000
@@ -0,0 +1,30 @@
+/*********************************************************
+*Ren_Buggy_Basics                                        *
+*Author: Elijah Orr & Dan Argust                         *
+*                                                        *  
+*This program demonstates use of a library of functions  *
+*(buggy_functions) to control the movement of the        *
+*RenBuggy.                                               *
+*********************************************************/
+
+#include "mbed.h" //"mbed.h" is a library that makes it easier to program microcontrollers
+
+#include "buggy_functions.h" //"buggy_functions.h" contains the functions that we will use to move the buggy
+
+/* The basic functions available are:
+*    
+*    forward(time);
+*    left(time);
+*    right(time);
+*    hold(time);
+*
+* see buggy_functions.h for a full list.
+*/
+
+
+int main() //int main is run automatically. Place your program here
+{
+    forward(5.5); //move the buggy forward for 5.5 seconds
+    hold(5); //wait for 16 seconds
+    
+}
\ No newline at end of file