]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
homologation: use robot.ignore_hokuyo when climbing the slope
authorFilip Jares <filipjares@post.cz>
Wed, 28 Apr 2010 10:12:03 +0000 (12:12 +0200)
committerFilip Jares <filipjares@post.cz>
Wed, 28 Apr 2010 10:12:03 +0000 (12:12 +0200)
src/robofsm/homologation.cc

index 934977867cd6561b18d0adb5166220545c8dcc7b..6612daae9a31668e5178c0bb86099a9f58f34d7a 100644 (file)
@@ -207,6 +207,7 @@ FSM_STATE(climb_the_slope)
        static int climb_the_slope_motion_done_count;
        switch(FSM_EVENT) {
                case EV_ENTRY:
+                       robot.ignore_hokuyo = true;
                        climb_the_slope_motion_done_count = 0;
                        robot_trajectory_new_backward(&tcVerySlow);
                        robot_trajectory_add_final_point_trans(
@@ -260,6 +261,7 @@ FSM_STATE(sledge_down)
                case EV_GOAL_NOT_REACHABLE:
                        DBG_PRINT_EVENT("unhandled event");
                case EV_EXIT:
+                       robot.ignore_hokuyo = false;
                        break;
        }
 }