mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavlink: receiver accept ODOMETRY MAV_ESTIMATOR_TYPE_UNKNOWN for legacy support
This commit is contained in:
parent
f461481548
commit
1848ac3bc7
@ -1406,7 +1406,10 @@ MavlinkReceiver::handle_message_odometry(mavlink_message_t *msg)
|
||||
odometry.local_frame = vehicle_odometry_s::LOCAL_FRAME_FRD;
|
||||
}
|
||||
|
||||
if (odom.estimator_type == MAV_ESTIMATOR_TYPE_VISION || odom.estimator_type == MAV_ESTIMATOR_TYPE_VIO) {
|
||||
if ((odom.estimator_type == MAV_ESTIMATOR_TYPE_VISION)
|
||||
|| (odom.estimator_type == MAV_ESTIMATOR_TYPE_VIO)
|
||||
|| (odom.estimator_type == MAV_ESTIMATOR_TYPE_UNKNOWN)) {
|
||||
// accept MAV_ESTIMATOR_TYPE_UNKNOWN for legacy support
|
||||
_visual_odometry_pub.publish(odometry);
|
||||
|
||||
} else if (odom.estimator_type == MAV_ESTIMATOR_TYPE_MOCAP) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user