diff options
author | M.H.Kabir <mhkabir98@gmail.com> | 2014-12-27 23:25:08 +0530 |
---|---|---|
committer | M.H.Kabir <mhkabir98@gmail.com> | 2014-12-27 23:25:08 +0530 |
commit | 33653b25c6569013d0a1a5a4885457c0bdc23e06 (patch) | |
tree | 68f7920d398a966fab3620d92adf4d55bcf6018c /src/modules | |
parent | 11a14c2c3d6ffeff5a896496c0d673845b734d86 (diff) | |
download | px4-firmware-33653b25c6569013d0a1a5a4885457c0bdc23e06.tar.gz px4-firmware-33653b25c6569013d0a1a5a4885457c0bdc23e06.tar.bz2 px4-firmware-33653b25c6569013d0a1a5a4885457c0bdc23e06.zip |
fix Z rotation
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index f91ae3c37..6f5adb5fe 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -379,7 +379,9 @@ MavlinkReceiver::handle_message_optical_flow_rad(mavlink_message_t *msg) f.sensor_id = flow.sensor_id; f.gyro_temperature = flow.temperature; - rotate_3f(flow_rot, f.pixel_flow_x_integral, f.pixel_flow_y_integral, f.ground_distance_m); // XXX Check this + /* rotate measurements according to parameter */ + float zeroval = 0.0f; + rotate_3f(flow_rot, f.pixel_flow_x_integral, f.pixel_flow_y_integral, zeroval); if (_flow_pub < 0) { _flow_pub = orb_advertise(ORB_ID(optical_flow), &f); |