Update frame in mavlink receiver odometry to newest mavlink

This commit is contained in:
kamilritz 2019-09-26 15:59:00 +02:00 committed by Kabir Mohammed
parent 9c46a89f64
commit 8ce4a15778
1 changed files with 1 additions and 1 deletions

View File

@ -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) {