AP_HAL_ChibiOS: correct include of mavlink header for analog debug

This commit is contained in:
Peter Barker 2019-09-25 11:25:55 +10:00 committed by Andrew Tridgell
parent c6dade50c5
commit ec991969c7

View File

@ -30,11 +30,14 @@ extern AP_IOMCU iomcu;
#include "hwdef/common/stm32_util.h"
#ifndef CHIBIOS_ADC_MAVLINK_DEBUG
#include <GCS_MAVLink/GCS_MAVLink.h>
// this allows the first 6 analog channels to be reported by mavlink for debugging purposes
#define CHIBIOS_ADC_MAVLINK_DEBUG 0
#endif
// MAVLink is included as we send a mavlink message as part of debug,
// and also use the MAV_POWER flags below in update_power_flags
#include <GCS_MAVLink/GCS_MAVLink.h>
#define ANLOGIN_DEBUGGING 0
// base voltage scaling for 12 bit 3.3V ADC