]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
robofsm/robot_orte: Receive angle to target from camera.
authorMichal Vokac <vokac.m@gmail.com>
Sat, 6 Oct 2012 10:04:06 +0000 (12:04 +0200)
committerMichal Vokac <vokac.m@gmail.com>
Sat, 6 Oct 2012 10:04:06 +0000 (12:04 +0200)
src/robofsm/robot_orte.c

index c2d360fd27e0f287520f0247a92982c4fbada536..270c53b08272e9172b2f7eb5174771f18c3890b0 100644 (file)
@@ -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);
                         }