RTL: improve RTL info message

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2021-10-22 16:57:04 +02:00 committed by Roman Bapst
parent 775a1eb4b6
commit ab08bbdb58
1 changed files with 3 additions and 3 deletions

View File

@ -574,12 +574,12 @@ Navigator::run()
const bool rtl_activated = _previous_nav_state != vehicle_status_s::NAVIGATION_STATE_AUTO_RTL;
switch (_rtl.get_rtl_type()) {
case RTL::RTL_TYPE_MISSION_LANDING: // use mission landing
case RTL::RTL_TYPE_MISSION_LANDING:
case RTL::RTL_TYPE_CLOSEST:
if (rtl_activated) {
if (_rtl.get_rtl_type() == RTL::RTL_TYPE_MISSION_LANDING) {
mavlink_log_info(get_mavlink_log_pub(), "RTL LAND activated\t");
events::send(events::ID("navigator_rtl_landing_activated"), events::Log::Info, "RTL activated");
mavlink_log_info(get_mavlink_log_pub(), "RTL to mission landing activated\t");
events::send(events::ID("navigator_rtl_landing_activated"), events::Log::Info, "RTL to mission landing activated");
} else {
mavlink_log_info(get_mavlink_log_pub(), "RTL Closest landing point activated\t");