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:
Silvan Fuhrer
2021-11-05 17:58:21 +03:00
committed by Roman Bapst
parent f4f9b8ebf2
commit 1163a52c17
-12
View File
@@ -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()) {