AP_Camera: move some includes to backend

also remove some redundant includes
This commit is contained in:
Randy Mackay 2023-04-15 10:04:19 +09:00 committed by Andrew Tridgell
parent 82d03e45e0
commit 9c72cf2a1e
3 changed files with 2 additions and 7 deletions

View File

@ -4,12 +4,8 @@
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#include <GCS_MAVLink/GCS.h>
#include <SRV_Channel/SRV_Channel.h> #include <SRV_Channel/SRV_Channel.h>
#include <AP_Logger/AP_Logger.h>
#include <AP_GPS/AP_GPS.h> #include <AP_GPS/AP_GPS.h>
#include <AP_Mount/AP_Mount.h>
#include "AP_Camera_Backend.h" #include "AP_Camera_Backend.h"
#include "AP_Camera_Servo.h" #include "AP_Camera_Servo.h"
#include "AP_Camera_Relay.h" #include "AP_Camera_Relay.h"

View File

@ -6,12 +6,9 @@
#if AP_CAMERA_ENABLED #if AP_CAMERA_ENABLED
#include <AP_Common/Location.h>
#include <AP_Logger/LogStructure.h>
#include <AP_Param/AP_Param.h> #include <AP_Param/AP_Param.h>
#include <GCS_MAVLink/GCS_MAVLink.h> #include <GCS_MAVLink/GCS_MAVLink.h>
#include "AP_Camera_Params.h" #include "AP_Camera_Params.h"
#include "AP_Mount/AP_Mount_config.h"
#define AP_CAMERA_MAX_INSTANCES 2 // maximum number of camera backends #define AP_CAMERA_MAX_INSTANCES 2 // maximum number of camera backends

View File

@ -23,6 +23,8 @@
#if AP_CAMERA_ENABLED #if AP_CAMERA_ENABLED
#include "AP_Camera.h" #include "AP_Camera.h"
#include <AP_Common/Location.h>
#include <AP_Logger/LogStructure.h>
class AP_Camera_Backend class AP_Camera_Backend
{ {