px4flow : rotate gyro readings as well

This commit is contained in:
Kabir Mohammed
2016-03-08 08:52:08 +01:00
committed by Lorenz Meier
parent f33c5a0e7f
commit 309212b52b
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -531,6 +531,8 @@ PX4FLOW::collect()
rotate_3f(_sensor_rotation, report.pixel_flow_x_integral, report.pixel_flow_y_integral, zeroval);
rotate_3f(_sensor_rotation, report.gyro_x_rate_integral, report.gyro_y_rate_integral, report.gyro_z_rate_integral);
if (_px4flow_topic == nullptr) {
_px4flow_topic = orb_advertise(ORB_ID(optical_flow), &report);