printf("ERROR: No trajectory\n");
return TARGET_ERROR;
}
- ROBOT_LOCK(est_pos);
- pos.x = robot.est_pos.x;
- pos.y = robot.est_pos.y;
- pos.phi = robot.est_pos.phi;
- ROBOT_UNLOCK(est_pos);
+ ROBOT_LOCK(est_pos_uzv);
+ pos.x = robot.est_pos_uzv.x;
+ pos.y = robot.est_pos_uzv.y;
+ pos.phi = robot.est_pos_uzv.phi;
+ ROBOT_UNLOCK(est_pos_uzv);
if (t->prepare(pos)) {
go(t, 0);