From b24e5fc0af8160a30667561f42cb5861670f193f Mon Sep 17 00:00:00 2001 From: Nicolas Martin Date: Tue, 28 Sep 2021 13:07:25 +0200 Subject: [PATCH] clean remaining offboard_control_signal_found_once offboard_control_signal_found_once is not used any more --- msg/vehicle_status_flags.msg | 1 - src/modules/mavlink/streams/HIGH_LATENCY2.hpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/msg/vehicle_status_flags.msg b/msg/vehicle_status_flags.msg index ae2da300f2..dae9b1c6d5 100644 --- a/msg/vehicle_status_flags.msg +++ b/msg/vehicle_status_flags.msg @@ -27,7 +27,6 @@ bool circuit_breaker_engaged_usb_check bool circuit_breaker_engaged_posfailure_check # set to true when the position valid checks have been disabled bool circuit_breaker_vtol_fw_arming_check # set to true if for VTOLs arming in fixed-wing mode should be allowed -bool offboard_control_signal_found_once bool offboard_control_signal_lost bool rc_signal_found_once diff --git a/src/modules/mavlink/streams/HIGH_LATENCY2.hpp b/src/modules/mavlink/streams/HIGH_LATENCY2.hpp index b04cbecf26..c52127f1f7 100644 --- a/src/modules/mavlink/streams/HIGH_LATENCY2.hpp +++ b/src/modules/mavlink/streams/HIGH_LATENCY2.hpp @@ -464,7 +464,7 @@ private: msg->failure_flags |= HL_FAILURE_FLAG_GPS; } - if (status_flags.offboard_control_signal_lost && status_flags.offboard_control_signal_found_once) { + if (status_flags.offboard_control_signal_lost) { msg->failure_flags |= HL_FAILURE_FLAG_OFFBOARD_LINK; }