Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MbedJSONValue m3pi
racing_robots.cpp
- Committer:
- sillevl
- Date:
- 2015-06-01
- Revision:
- 8:597ce8a7d34b
- Parent:
- 4:3743cbfe031b
File content as of revision 8:597ce8a7d34b:
#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
#ifdef XBBE
if(!xbee.hasCode()){
error("no unique code is set when using Xbee for start/stop");
}
#endif
}
/*
* Entry point.
* Also calls external loop function.
*/
int main (void) {
// Initialize system
_init();
while (true) {
loop(); // Students loop
}
}
