Racing Robots Session
Dependencies: MbedJSONValue m3pi
This is the library for the Racing Robots session. It supports the M3PI robot of Polulu.
It is based on the "Arduino" principle of the init and loop function.
Just add a main.cpp file which contains:
Racing Robots main file
#include "robot_logic.h" void init() { //put your initialization logic here } void loop() { //put your robot control logic here }
Features include:
- Controlling the LEDS
- Move forward and backward
- Turn
- Read the sensor values
- Use a PID controller
Diff: racing_robots.cpp
- Revision:
- 4:3743cbfe031b
- Parent:
- 1:43c91152e9ce
- Child:
- 8:597ce8a7d34b
diff -r b5d18690f357 -r 3743cbfe031b racing_robots.cpp --- a/racing_robots.cpp Tue Feb 24 09:01:06 2015 +0000 +++ b/racing_robots.cpp Tue Feb 24 09:06:29 2015 +0000 @@ -1,4 +1,4 @@ -#include "racing_robots.h" +#include "robot_logic.h" // External functions called from our library extern void init(void);