Browse Source

AP_RCTelemetry: tidy includes

apm_2208
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
0e8ac68af4
  1. 4
      libraries/AP_RCTelemetry/AP_CRSF_Telem.h
  2. 4
      libraries/AP_RCTelemetry/AP_RCTelemetry.h
  3. 3
      libraries/AP_RCTelemetry/AP_Spektrum_Telem.h

4
libraries/AP_RCTelemetry/AP_CRSF_Telem.h

@ -14,7 +14,6 @@
*/ */
#pragma once #pragma once
#include <AP_HAL/AP_HAL.h>
#include <AP_HAL/AP_HAL_Boards.h> #include <AP_HAL/AP_HAL_Boards.h>
#include <AP_OSD/AP_OSD.h> #include <AP_OSD/AP_OSD.h>
@ -28,9 +27,6 @@
#if HAL_CRSF_TELEM_ENABLED #if HAL_CRSF_TELEM_ENABLED
#include <AP_Notify/AP_Notify.h>
#include <AP_SerialManager/AP_SerialManager.h>
#include <AP_HAL/utility/RingBuffer.h>
#include <AP_RCProtocol/AP_RCProtocol_CRSF.h> #include <AP_RCProtocol/AP_RCProtocol_CRSF.h>
#include "AP_RCTelemetry.h" #include "AP_RCTelemetry.h"
#include <AP_HAL/utility/sparse-endian.h> #include <AP_HAL/utility/sparse-endian.h>

4
libraries/AP_RCTelemetry/AP_RCTelemetry.h

@ -14,10 +14,10 @@
*/ */
#pragma once #pragma once
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/Semaphores.h>
#include <AP_Notify/AP_Notify.h>
#include <AP_HAL/utility/RingBuffer.h> #include <AP_HAL/utility/RingBuffer.h>
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#define TELEM_PAYLOAD_STATUS_CAPACITY 5 // size of the message buffer queue (max number of messages waiting to be sent) #define TELEM_PAYLOAD_STATUS_CAPACITY 5 // size of the message buffer queue (max number of messages waiting to be sent)

3
libraries/AP_RCTelemetry/AP_Spektrum_Telem.h

@ -14,7 +14,7 @@
*/ */
#pragma once #pragma once
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_SPEKTRUM_TELEM_ENABLED #ifndef HAL_SPEKTRUM_TELEM_ENABLED
#define HAL_SPEKTRUM_TELEM_ENABLED !HAL_MINIMIZE_FEATURES #define HAL_SPEKTRUM_TELEM_ENABLED !HAL_MINIMIZE_FEATURES
@ -22,7 +22,6 @@
#if HAL_SPEKTRUM_TELEM_ENABLED #if HAL_SPEKTRUM_TELEM_ENABLED
#include <AP_Notify/AP_Notify.h>
#include <AP_SerialManager/AP_SerialManager.h> #include <AP_SerialManager/AP_SerialManager.h>
#include <AP_HAL/utility/RingBuffer.h> #include <AP_HAL/utility/RingBuffer.h>
#include "AP_RCTelemetry.h" #include "AP_RCTelemetry.h"

Loading…
Cancel
Save