Skip to content

Commit

Permalink
Update frame in mavlink receiver odometry to newest mavlink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilritz authored and mhkabir committed Sep 26, 2019
1 parent 9c46a89 commit 8ce4a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ MavlinkReceiver::handle_message_odometry(mavlink_message_t *msg)
PX4_ERR("Body frame %u not supported. Unable to publish velocity", odom.child_frame_id);
}

if (odom.frame_id == MAV_FRAME_VISION_NED) {
if (odom.frame_id == MAV_FRAME_LOCAL_FRD) {
_visual_odometry_pub.publish(odometry);

} else if (odom.frame_id == MAV_FRAME_MOCAP_NED) {
Expand Down

0 comments on commit 8ce4a15

Please sign in to comment.