Browse Source

AP_HAL_ChibiOS: correct include of mavlink header for analog debug

master
Peter Barker 5 years ago committed by Peter Barker
parent
commit
9fb715692e
  1. 5
      libraries/AP_HAL_ChibiOS/AnalogIn.cpp

5
libraries/AP_HAL_ChibiOS/AnalogIn.cpp

@ -30,11 +30,14 @@ extern AP_IOMCU iomcu; @@ -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

Loading…
Cancel
Save