mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:18:54 +08:00
Navigator: remove unnecessary (duplicated) info messages for RTL
There is already (a more precise) info message on RTL activation. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Roman Bapst
parent
f4f9b8ebf2
commit
1163a52c17
@@ -576,18 +576,6 @@ Navigator::run()
|
||||
switch (_rtl.get_rtl_type()) {
|
||||
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 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");
|
||||
events::send(events::ID("navigator_rtl_closest_point_activated"), events::Log::Info,
|
||||
"RTL to closest landing point activated");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!rtl_activated && _rtl.getClimbAndReturnDone()
|
||||
&& _rtl.getDestinationTypeMissionLanding()) {
|
||||
|
||||
Reference in New Issue
Block a user