HAL_QURT: support mavlink2 build

This commit is contained in:
Andrew Tridgell 2016-01-12 09:21:49 +11:00
parent f6511e8337
commit 4eadab7a90
1 changed files with 4 additions and 0 deletions

View File

@ -4,7 +4,11 @@
#if CONFIG_HAL_BOARD == HAL_BOARD_QURT #if CONFIG_HAL_BOARD == HAL_BOARD_QURT
#include "RCOutput.h" #include "RCOutput.h"
#if MAVLINK_PROTOCOL_VERSION == 2
#include <GCS_MAVLink/include/mavlink/v2.0/checksum.h>
#else
#include <GCS_MAVLink/include/mavlink/v1.0/checksum.h> #include <GCS_MAVLink/include/mavlink/v1.0/checksum.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>