2 * competition.cc 12/02/28
4 * Robot's control program intended for competition on Eurobot 2012.
6 * Copyright: (c) 2012 CTU Flamingos
7 * CTU FEE - Department of Control Engineering
16 #include <movehelper.h>
23 #include "actuators.h"
25 #include "match-timing.h"
27 #include "common-states.h"
29 UL_LOG_CUST(ulogd_homologation); /* Log domain name = ulogd + name of the file */
31 /************************************************************************
32 * Trajectory constraints used, are initialized in the init state
33 ************************************************************************/
35 /************************************************************************
37 ************************************************************************/
43 if (rv) error(1, errno, "robot_init() returned %d\n", rv);
45 robot.obstacle_avoidance_enabled = true;
47 robot.fsm.main.debug_states = 1;
48 robot.fsm.motion.debug_states = 1;
49 //robot.fsm.act.debug_states = 1;
51 robot.fsm.main.state = &fsm_state_main_central_buillon_wait_for_start;
52 //robot.fsm.main.transition_callback = trans_callback;
53 //robot.fsm.motion.transition_callback = move_trans_callback;
55 tcVeryFast = trajectoryConstraintsDefault;
57 tcVeryFast.maxacc = 0.6;
58 tcVeryFast.maxomega = 1;
59 tcFast = trajectoryConstraintsDefault;
64 tcSlow = trajectoryConstraintsDefault;
69 tcVerySlow = trajectoryConstraintsDefault;
70 tcVerySlow.maxv = 0.1;
71 tcVerySlow.maxacc = 0.1;
72 tcVerySlow.maxomega = 0.2;
73 tcVerySlow.maxe = 0.02;
75 if (rv) error(1, errno, "robot_start() returned %d\n", rv);