GCS_MAVLINK: add OpenDroneID messages

This commit is contained in:
Roel Schiphorst 2022-07-07 02:18:09 -04:00 committed by Andrew Tridgell
parent c52ae2edb4
commit 3bd792295c
2 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include <AP_Filesystem/AP_Filesystem_Available.h>
#include <AP_GPS/AP_GPS.h>
#include <AP_OpticalFlow/AP_OpticalFlow.h>
#include <AP_OpenDroneID/AP_OpenDroneID.h>
#include <AP_Mount/AP_Mount.h>
#include <AC_Fence/AC_Fence.h>

View File

@ -3860,6 +3860,16 @@ void GCS_MAVLINK::handle_common_message(const mavlink_message_t &msg)
AP::can().handle_can_filter_modify(msg);
#endif
break;
#if AP_OPENDRONEID_ENABLED
case MAVLINK_MSG_ID_OPEN_DRONE_ID_ARM_STATUS:
case MAVLINK_MSG_ID_OPEN_DRONE_ID_OPERATOR_ID:
case MAVLINK_MSG_ID_OPEN_DRONE_ID_SELF_ID:
case MAVLINK_MSG_ID_OPEN_DRONE_ID_BASIC_ID:
case MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM:
AP::opendroneid().handle_msg(chan, msg);
break;
#endif
}
}