]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Fix a bad definition in data struct.
authorTran Duy Khanh <trandk1@fel.cvut.cz>
Thu, 1 May 2008 03:12:21 +0000 (05:12 +0200)
committerTran Duy Khanh <trandk1@fel.cvut.cz>
Thu, 1 May 2008 03:12:21 +0000 (05:12 +0200)
src/robofsm/eb2008/robot_eb2008.h

index dba8ecdbbb79cca25986e6aef92b78ae089968a9..7f7ecb399bc1269bc23ff28c0b54a05e329779f0 100644 (file)
@@ -38,7 +38,8 @@ enum team_color {
 };
 
 enum ball_color {
-       BLUE_BALL = 1,
+       NO_BALL = 0,
+       BLUE_BALL,
        RED_BALL,
        WHITE_BALL
 };
@@ -96,7 +97,7 @@ struct robot_eb2008 {
 
        #define CAROUSEL_SIZE 5
        unsigned char carousel[CAROUSEL_SIZE];
-       unsigned char ball_cnt = 0;
+       unsigned char carousel_cnt;
 
        /** Temporary storage for new trajectory. After the trajectory creation is
         * finished, this trajectory is submitted to fsmmove. */