4 * Movement test: test accurancy of turning at one point.
6 * Copyright: (c) 2007 CTU Dragons
7 * CTU FEE - Department of Control Engineering
13 #include <movehelper.h>
24 /* Where we are at the begining? */
25 robot_set_est_pos_trans(1, 0.5, DEG2RAD(0));
37 static bool backward = false;
38 struct TrajectoryConstraints tc = trajectoryConstraintsDefault;
44 /* Allocate new trajectory */
46 robot_move_by(0/*m*/, TURN_CCW(DEG2RAD(180)), &tc);
48 robot_move_by(0/*m*/, TURN_CW(DEG2RAD(0)), &tc);
57 DBG_PRINT_EVENT("unhandled event");
79 if (rv) error(1, errno, "robot_init() returned %d\n", rv);
81 robot.fsm.main.debug_states = 1;
83 robot.fsm.main.state = &fsm_state_main_init;
86 if (rv) error(1, errno, "robot_start() returned %d\n", rv);