4 #include <movehelper.h>
8 FSM_STATE_DECL(measure);
16 // brushes_drives_in();
18 robot_set_est_pos_trans(1, 0.5, DEG2RAD(180));
22 FSM_TRANSITION(measure);
37 robot_move_by(0.01, NO_TURN(), NULL);
41 FSM_TRANSITION(measure);
56 printf("%3d %9.3f %9.3f\n", cm, robot.sharps.front_left, robot.sharps.front_right);
71 /* robot initialization */
74 printf("robot_init(): terminated with errors.\n");
78 robot.laser_enabled = false;
80 robot.fsm[FSM_ID_MAIN].state = &fsm_state_main_init;
82 /* Start threads and wait */
85 printf("robot_start(): terminated with errors.\n");