Racing Robots Session

Dependencies:   m3pi mbed

Fork of racing_robots by Nico De Witte

racing_robots.cpp

Committer:
pcordemans
Date:
2015-02-24
Revision:
4:3743cbfe031b
Parent:
1:43c91152e9ce
Child:
8:597ce8a7d34b

File content as of revision 4:3743cbfe031b:

#include "robot_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
    }
}