Updated MavlinkReceiver::handle_message_landing_target to warn users when they provide a landing target with an unsupported coordinate frame.

Updated Simulator::handle_message_landing_target to warn users when they provide a landing target that is not relative to a captured image.
This commit is contained in:
obicons
2021-04-06 16:02:54 -04:00
committed by Daniel Agar
parent 31b9efdaeb
commit a7e920d276
2 changed files with 18 additions and 8 deletions
+5
View File
@@ -2305,6 +2305,11 @@ MavlinkReceiver::handle_message_landing_target(mavlink_message_t *msg)
_landing_target_pose_pub.publish(landing_target_pose);
} else if (landing_target.position_valid) {
// We only support MAV_FRAME_LOCAL_NED. In this case, the frame was unsupported.
mavlink_log_critical(&_mavlink_log_pub, "landing target: coordinate frame %d unsupported",
landing_target.frame);
} else {
irlock_report_s irlock_report{};