Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Revision:
14:24f994dc2770
Parent:
13:57ea4e520dbd
Child:
15:acae5c0e9ca8
--- a/Eurobot_shared/ai/ai.cpp	Sat Apr 28 19:39:08 2012 +0000
+++ b/Eurobot_shared/ai/ai.cpp	Sat Apr 28 20:44:09 2012 +0000
@@ -12,11 +12,11 @@
 
 void AI::settarget(float targetX, float targetY, float targetTheta, bool targetfacing) {
     targetlock.lock();
+    targetnumber++;
     target.x = targetX;
     target.y = targetY;
     target.theta = targetTheta;
     target.facing = targetfacing;
-    targetnumber++;
     targetlock.unlock();
 }