Racing Robots Session

Dependencies:   m3pi mbed

Dependents:   RacingRobots

Fork of racing_robots by Nico De Witte

RacingRobots.cpp

Committer:
sillevl
Date:
2015-06-01
Revision:
8:c5dccd557aab
Parent:
racing_robots.cpp@ 4:3743cbfe031b

File content as of revision 8:c5dccd557aab:

#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
    }
}