sdlog2: bugfix in FLOW message

This commit is contained in:
Anton Babushkin 2013-06-25 22:51:51 +04:00
parent fdc7247fcf
commit 85d35777e0
1 changed files with 1 additions and 1 deletions

View File

@ -1070,7 +1070,7 @@ int sdlog2_thread_main(int argc, char *argv[])
orb_copy(ORB_ID(optical_flow), subs.flow_sub, &buf.flow);
log_msg.msg_type = LOG_FLOW_MSG;
log_msg.body.log_FLOW.flow_raw_x = buf.flow.flow_raw_x;
log_msg.body.log_FLOW.flow_raw_y = buf.flow.flow_raw_x;
log_msg.body.log_FLOW.flow_raw_y = buf.flow.flow_raw_y;
log_msg.body.log_FLOW.flow_comp_x = buf.flow.flow_comp_x_m;
log_msg.body.log_FLOW.flow_comp_y = buf.flow.flow_comp_y_m;
log_msg.body.log_FLOW.distance = buf.flow.ground_distance_m;