From: Michal Vokac Date: Sat, 6 Oct 2012 10:04:06 +0000 (+0200) Subject: robofsm/robot_orte: Receive angle to target from camera. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/eurobot/public.git/commitdiff_plain/f0ece3631efe6ed30777f116fea6afa3b572e59f robofsm/robot_orte: Receive angle to target from camera. --- diff --git a/src/robofsm/robot_orte.c b/src/robofsm/robot_orte.c index c2d360fd..270c53b0 100644 --- a/src/robofsm/robot_orte.c +++ b/src/robofsm/robot_orte.c @@ -348,6 +348,7 @@ void rcv_camera_result_cb(const ORTERecvInfo *info, void *vinstance, if (instance->data_valid && instance->data_valid != last_response) { ROBOT_LOCK(camera_result); robot.target_valid = instance->target_valid; + robot.target_ang = instance->angle_deg; ROBOT_UNLOCK(camera_result); FSM_SIGNAL(MAIN, EV_CAMERA_DONE, NULL); }