The subsystem design/basis for the final project
Dependencies: mbed-rtos mbed-src pixylib
Diff: main.cpp
- Revision:
- 15:caa5a93a31d7
- Parent:
- 14:2d609d465f00
- Child:
- 17:47e107f9587b
--- a/main.cpp Sat Mar 26 17:52:34 2016 +0000 +++ b/main.cpp Sat Mar 26 19:24:02 2016 +0000 @@ -4,8 +4,7 @@ #include "global.h" #include "robot.h" - -// Definitions +// Definitions // ---------------------------------------------------------------- enum Mode { AUTO_TRACK = '0', @@ -29,6 +28,7 @@ // ---------------------------------------------------------------- int main() { int mode; + InitRobot(); while (1) { PrintMenu(&pc); @@ -36,13 +36,14 @@ pc.printf("\r\n\r\n"); switch (mode) { case AUTO_TRACK: - AutoTrack(false); + AutoTrack(); + pc.printf("Robot Shutdown... \r\n\r\n"); break; case MANUAL_CONTROL: ManualControl(); break; case SYSTEM_TUNING: - AutoTrack(true); + Tunning(); pc.printf("Robot Shutdown... \r\n\r\n"); break; default: