mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
mavlink: ODOMETRY handler accept all other estimator_types for now
This commit is contained in:
committed by
Nuno Marques
parent
d67a84d941
commit
b216714d56
@@ -1406,14 +1406,13 @@ MavlinkReceiver::handle_message_odometry(mavlink_message_t *msg)
|
|||||||
odometry.local_frame = vehicle_odometry_s::LOCAL_FRAME_FRD;
|
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_MOCAP) {
|
||||||
_visual_odometry_pub.publish(odometry);
|
|
||||||
|
|
||||||
} else if (odom.estimator_type == MAV_ESTIMATOR_TYPE_MOCAP) {
|
|
||||||
_mocap_odometry_pub.publish(odometry);
|
_mocap_odometry_pub.publish(odometry);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PX4_ERR("Estimator source %u not supported. Unable to publish pose and velocity", odom.estimator_type);
|
// MAV_ESTIMATOR_TYPE_VISION, MAV_ESTIMATOR_TYPE_VIO
|
||||||
|
// publish anything else for now
|
||||||
|
_visual_odometry_pub.publish(odometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user