Racing Robots Session

Dependencies:   m3pi mbed

Dependents:   RacingRobots

Fork of racing_robots by Nico De Witte

Revision:
8:c5dccd557aab
Parent:
4:3743cbfe031b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RacingRobots.cpp	Mon Jun 01 10:13:18 2015 +0000
@@ -0,0 +1,28 @@
+#include "Logic.h"
+
+// External functions called from our library
+extern void init(void);
+extern void loop(void);
+
+/*
+ * System initialization.
+ * Also calls external init() function.
+ */
+void _init(void) {
+    // DO our init here
+
+    init(); // Students init
+}
+
+/*
+ * Entry point.
+ * Also calls external loop function.
+ */
+int main (void) {
+    // Initialize system
+    _init();
+
+    while (true) {
+        loop();     // Students loop
+    }
+}
\ No newline at end of file