]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Fixed obstacle protection
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 3 May 2008 11:11:31 +0000 (13:11 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 3 May 2008 11:11:31 +0000 (13:11 +0200)
src/robofsm/eb2008/robot_eb2008.c

index cd1da74f04bbd7f74c8e369482944101d32bb695..fbb08da26db323fe7fe870f18095058663863ebf 100644 (file)
@@ -75,7 +75,7 @@ void fill_in_known_areas_in_map()
        ShmapSetRectangleFlag(0, 1.25, 0.3, 1.45, MAP_FLAG_IGNORE_OBST, 0); /* Left white vert. dispenser */
        ShmapSetRectangleFlag(2.7, 1.25, 3, 1.45, MAP_FLAG_IGNORE_OBST, 0); /* Right white vert. dispenser */
 
-       ShmapSetRectangleFlag(0.65, 1.8, 0.85, 2.1, MAP_FLAG_IGNORE_OBST, 0); /* Blue vert. dispenser */
+       ShmapSetRectangleFlag(0.60, 1.8, 0.85, 2.1, MAP_FLAG_IGNORE_OBST, 0); /* Blue vert. dispenser */
        ShmapSetRectangleFlag(2.30, 1.8, 2.55, 2.1, MAP_FLAG_IGNORE_OBST, 0); /* Red vert. dispenser */
 
        /* Ignore other obstacles at edges */
@@ -83,6 +83,9 @@ void fill_in_known_areas_in_map()
        ShmapSetRectangleFlag(0.0, 0.0, 3.0, 0.09, MAP_FLAG_IGNORE_OBST, 0); /* bottom */
        ShmapSetRectangleFlag(0.0, 2.01, 3.0, 2.1, MAP_FLAG_IGNORE_OBST, 0); /* top */
        ShmapSetRectangleFlag(2.91, 0.0, 3.0, 2.1, MAP_FLAG_IGNORE_OBST, 0); /* right */
+
+       ShmapSetRectangleFlag(0.0, 0.0, 0.2, 0.6, MAP_FLAG_IGNORE_OBST, 0); /* left basket */
+       ShmapSetRectangleFlag(2.8, 0.0, 3.0, 0.6, MAP_FLAG_IGNORE_OBST, 0); /* right basket */
 }
 
 /**