GCS_MAVLink: added OpenDroneID support

This commit is contained in:
Andrew Tridgell 2022-08-28 19:03:19 +10:00
parent 0a64bc8cbc
commit d41c283a5c
2 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <AP_Devo_Telem/AP_Devo_Telem.h>
#include <RC_Channel/RC_Channel.h>
#include <AP_Filesystem/AP_Filesystem_Available.h>
#include <AP_OpenDroneID/AP_OpenDroneID.h>
#include "MissionItemProtocol_Waypoints.h"
#include "MissionItemProtocol_Rally.h"

View File

@ -3246,6 +3246,17 @@ void GCS_MAVLINK::handle_common_message(const mavlink_message_t &msg)
case MAVLINK_MSG_ID_OPTICAL_FLOW:
handle_optical_flow(msg);
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:
case MAVLINK_MSG_ID_OPEN_DRONE_ID_SYSTEM_UPDATE:
AP::opendroneid().handle_msg(chan, msg);
break;
#endif
}
}