]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/robofsm/eb2008/robot_eb2008.c
Almost final competition version.
[eurobot/public.git] / src / robofsm / eb2008 / robot_eb2008.c
index d5234018347ce2f88a72faa5c5e915f6d2e04928..f2f90a0cc4d1b844328802ee6a56a3522102c795 100644 (file)
@@ -161,9 +161,6 @@ int robot_init()
        robot.laser.aeval_sigma = DEG2RAD(4);
        robot.mcl = mcl_laser_init(&robot.laser, 1000);
 
-       robot.orte.laser_cmd.speed = LASER_DRIVE_ON;
-       ORTEPublicationSend(robot.orte.publication_laser_cmd);
-
        robot.fsm[FSM_ID_MOTION].state = &fsm_state_motion_init;
        robot.fsm[FSM_ID_LOC].state = &fsm_state_loc_init;
 
@@ -250,6 +247,8 @@ int robot_exit()
 
        robot.orte.laser_cmd.speed = LASER_DRIVE_OFF;
        ORTEPublicationSend(robot.orte.publication_laser_cmd);
+       ORTEPublicationSend(robot.orte.publication_laser_cmd);
+
        open_back_door();
        open_bottom_door();
        off_bagr();