From b7e0b1ad3823339bc056f45c27072be810363248 Mon Sep 17 00:00:00 2001 From: chobitsfan Date: Thu, 27 Oct 2022 10:36:09 +0800 Subject: [PATCH] Copter: explain msgs handling in packetReceived --- ArduCopter/GCS_Mavlink.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index a20beb419c..e6c12cc7cf 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -577,6 +577,7 @@ bool GCS_MAVLINK_Copter::handle_guided_request(AP_Mission::Mission_Command &cmd) void GCS_MAVLINK_Copter::packetReceived(const mavlink_status_t &status, const mavlink_message_t &msg) { + // we handle these messages here to avoid them being blocked by mavlink routing code #if HAL_ADSB_ENABLED if (copter.g2.dev_options.get() & DevOptionADSBMAVLink) { // optional handling of GLOBAL_POSITION_INT as a MAVLink based avoidance source