7 #include <movehelper.h>
14 #include "actuators.h"
17 #include "match-timing.h"
20 #include "common-states.h"
22 UL_LOG_CUST(ulogd_strategy_homologation); /* Log domain name = ulogd + name of the file */
25 FSM_STATE(homologation_wait_for_start)
31 ul_logmsg("waiting for start\n");
37 robot_calibrate_odometry();
38 FSM_TRANSITION(homologation_approach_buillon);
47 case EV_SWITCH_STRATEGY:
48 FSM_TRANSITION(calibrate);
56 FSM_STATE(homologation_approach_buillon)
60 //robot.use_back_bumpers = false;
61 robot_trajectory_new(&tcSlow); // new trajectory
62 robot_trajectory_add_point_trans(
64 PLAYGROUND_HEIGHT_M - (ROBOT_WIDTH_M/2.0));
65 robot_trajectory_add_point_trans(
68 robot_trajectory_add_final_point_trans(
75 //robot.use_back_bumpers = true;
76 FSM_TRANSITION(homologation_push_bottle);
83 FSM_STATE(homologation_push_bottle)
87 robot_trajectory_new(&tcSlow); // new trajectory
88 robot_trajectory_add_point_trans(
91 robot_trajectory_add_final_point_trans(
93 ROBOT_AXIS_TO_FRONT_M + 0.08,
94 ARRIVE_FROM(DEG2RAD(270), 0.10));