HAL_Linux: support mavlink2 build

This commit is contained in:
Andrew Tridgell 2016-01-12 09:20:39 +11:00
parent 511ca6d764
commit 31f8d26784

View File

@ -25,7 +25,11 @@
#include "RCOutput_qflight.h"
#include <AP_HAL_Linux/qflight/qflight_util.h>
#include <AP_HAL_Linux/qflight/qflight_dsp.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>
#endif
#include <stdio.h>
extern const AP_HAL::HAL& hal;