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
racing_robots.h@0:c0ae66a0ec7a, 2015-02-23 (annotated)
- Committer:
- dwini
- Date:
- Mon Feb 23 12:24:31 2015 +0000
- Revision:
- 0:c0ae66a0ec7a
- Child:
- 1:43c91152e9ce
Define interface of pololu for racing robots.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dwini | 0:c0ae66a0ec7a | 1 | #include "mbed.h" |
dwini | 0:c0ae66a0ec7a | 2 | #include "m3pi.h" |
dwini | 0:c0ae66a0ec7a | 3 | #include "robot_logic.h" |
dwini | 0:c0ae66a0ec7a | 4 | |
dwini | 0:c0ae66a0ec7a | 5 | #ifndef H_RACING_ROBOTS |
dwini | 0:c0ae66a0ec7a | 6 | #define H_RACING_ROBOTS |
dwini | 0:c0ae66a0ec7a | 7 | |
dwini | 0:c0ae66a0ec7a | 8 | void racing_robots(void); |
dwini | 0:c0ae66a0ec7a | 9 | |
dwini | 0:c0ae66a0ec7a | 10 | #endif |