mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 13:13:33 +08:00
RTL: improve RTL info message
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Roman Bapst
parent
775a1eb4b6
commit
ab08bbdb58
@@ -574,12 +574,12 @@ Navigator::run()
|
|||||||
const bool rtl_activated = _previous_nav_state != vehicle_status_s::NAVIGATION_STATE_AUTO_RTL;
|
const bool rtl_activated = _previous_nav_state != vehicle_status_s::NAVIGATION_STATE_AUTO_RTL;
|
||||||
|
|
||||||
switch (_rtl.get_rtl_type()) {
|
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:
|
case RTL::RTL_TYPE_CLOSEST:
|
||||||
if (rtl_activated) {
|
if (rtl_activated) {
|
||||||
if (_rtl.get_rtl_type() == RTL::RTL_TYPE_MISSION_LANDING) {
|
if (_rtl.get_rtl_type() == RTL::RTL_TYPE_MISSION_LANDING) {
|
||||||
mavlink_log_info(get_mavlink_log_pub(), "RTL LAND activated\t");
|
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 activated");
|
events::send(events::ID("navigator_rtl_landing_activated"), events::Log::Info, "RTL to mission landing activated");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
mavlink_log_info(get_mavlink_log_pub(), "RTL Closest landing point activated\t");
|
mavlink_log_info(get_mavlink_log_pub(), "RTL Closest landing point activated\t");
|
||||||
|
|||||||
Reference in New Issue
Block a user