GCS_MAVLink: add board ID to AUTOPILOT_VERSION mavlink msg

Co-authored-by: durka
This commit is contained in:
Peter Barker 2021-10-21 08:16:10 +11:00 committed by Peter Barker
parent 8de7261c67
commit f7d42a3f3b

View File

@ -2352,7 +2352,11 @@ void GCS_MAVLINK::send_autopilot_version() const
{
uint32_t flight_sw_version;
uint32_t middleware_sw_version = 0;
#ifdef APJ_BOARD_ID
uint32_t board_version { APJ_BOARD_ID << 16 };
#else
uint32_t board_version = 0;
#endif
char flight_custom_version[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_FLIGHT_CUSTOM_VERSION_LEN]{};
char middleware_custom_version[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_MIDDLEWARE_CUSTOM_VERSION_LEN]{};
char os_custom_version[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_OS_CUSTOM_VERSION_LEN]{};