Racing Robots Session

Dependencies:   m3pi mbed

Fork of racing_robots by Nico De Witte

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers racing_robots.cpp Source File

racing_robots.cpp

00001 #include "robot_logic.h"
00002 
00003 // External functions called from our library
00004 extern void init(void);
00005 extern void loop(void);
00006 
00007 /*
00008  * System initialization.
00009  * Also calls external init() function.
00010  */
00011 void _init(void) {
00012     // DO our init here
00013 
00014     init(); // Students init
00015 }
00016 
00017 /*
00018  * Entry point.
00019  * Also calls external loop function.
00020  */
00021 int main (void) {
00022     // Initialize system
00023     _init();
00024 
00025     while (true) {
00026         loop();     // Students loop
00027     }
00028 }