This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
Revision 89:dfe8c2ec5b88, committed 2013-04-16
- Comitter:
- madcowswe
- Date:
- Tue Apr 16 13:19:17 2013 +0000
- Parent:
- 88:8850373c3f0d
- Child:
- 90:e4164bb8c60e
- Commit message:
- blue works
Changed in this revision
| Processes/AI/ai.cpp | Show annotated file Show diff for this revision Revisions of this file |
| globals.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Processes/AI/ai.cpp Tue Apr 16 12:55:10 2013 +0000
+++ b/Processes/AI/ai.cpp Tue Apr 16 13:19:17 2013 +0000
@@ -79,7 +79,7 @@
motion::waypoint_flag_mutex.unlock();
Thread::signal_wait(0x1); //wait until wp reached
- Waypoint approach_wp = {2.2, 1.83/*1.85*/, (-3.0f/4.0f)*PI, 0.03, 0.05*PI, 32};
+ Waypoint approach_wp = {2.24, 1.83/*1.85*/, (-3.0f/4.0f)*PI, 0.03, 0.05*PI, 32};
motion::waypoint_flag_mutex.lock();
motion::setNewWaypoint(Thread::gettid(),&approach_wp);
motion::waypoint_flag_mutex.unlock();
@@ -118,6 +118,10 @@
bot_target_phi -= 15.0/180*PI;
}
+ // hack
+ if (own_colour==BLUE && i==0)
+ continue;
+
// set new wp
mutable_cake_wp.x = 1.5-r*cos(phi);
mutable_cake_wp.y = 2-r*sin(phi);
--- a/globals.h Tue Apr 16 12:55:10 2013 +0000 +++ b/globals.h Tue Apr 16 13:19:17 2013 +0000 @@ -2,8 +2,8 @@ #ifndef GLOBALS_H #define GLOBALS_H -#define TEAM_RED -//#define TEAM_BLUE +//#define TEAM_RED +#define TEAM_BLUE #include "mbed.h"

