]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
sharpcalib: fixed
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 3 May 2008 05:37:20 +0000 (07:37 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 3 May 2008 05:37:20 +0000 (07:37 +0200)
src/robofsm/eb2008/test/sharpcalib.cc

index ea9dc1545b18c71b93a03442ce69004c095e3b90..4c5d3af9e88540539a93c695353531e4f26428a3 100644 (file)
@@ -32,7 +32,7 @@ FSM_STATE(move)
 {
        switch (FSM_EVENT) {
                case EV_ENTRY:
-                       if (cm <= 10)
+                       if (cm <= 5)
                                robot_exit();
                        robot_move_by(0.01, NO_TURN(), NULL);
                        break;
@@ -68,6 +68,7 @@ int main()
 {
        /* robot initialization */
        robot_init();
+       robot.laser_enabled = false;
 
        robot.fsm[FSM_ID_MAIN].state = &fsm_state_main_init;