Add rotation switching to flow from mavlink

This commit is contained in:
M.H.Kabir
2014-12-27 23:16:09 +05:30
parent d40168dc4b
commit 11a14c2c3d
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -546,7 +546,7 @@ PX4FLOW::collect()
report.sensor_id = 0;
/* rotate measurements to flight controller frame */
rotate_3f(_sensor_rotation, report.pixel_flow_x_integral, report.pixel_flow_y_integral, report.ground_distance_m);
rotate_3f(_sensor_rotation, report.pixel_flow_x_integral, report.pixel_flow_y_integral, report.ground_distance_m); // XXX Check this
if (_px4flow_topic < 0) {
_px4flow_topic = orb_advertise(ORB_ID(optical_flow), &report);