GCS_MAVLINK: add OpenDroneID messages

This commit is contained in:
Roel Schiphorst 2022-07-07 02:18:09 -04:00 committed by Randy Mackay
parent 0538dc90ce
commit cf970c1f87
2 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <AP_GPS/AP_GPS.h>
#include <AP_VisualOdom/AP_VisualOdom.h>
#include <AP_OpticalFlow/AP_OpticalFlow.h>
#include <AP_OpenDroneID/AP_OpenDroneID.h>
#include "MissionItemProtocol_Waypoints.h"
#include "MissionItemProtocol_Rally.h"

View File

@ -3725,6 +3725,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
}
}