AP_Mount: tidy includes

This commit is contained in:
Peter Barker 2022-03-01 12:19:11 +11:00 committed by Andrew Tridgell
parent 8930b5f6f5
commit 7ce739aeef
5 changed files with 9 additions and 10 deletions

View File

@ -19,8 +19,7 @@
************************************************************/
#pragma once
#include <AP_HAL/AP_HAL.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_MOUNT_ENABLED
#define HAL_MOUNT_ENABLED !HAL_MINIMIZE_FEATURES

View File

@ -2,6 +2,8 @@
#if HAL_MOUNT_ENABLED
#include <AP_SerialManager/AP_SerialManager.h>
#include <AP_AHRS/AP_AHRS.h>
extern const AP_HAL::HAL& hal;
void AP_Mount_Alexmos::init()
@ -305,4 +307,4 @@ void AP_Mount_Alexmos::read_incoming()
}
}
}
#endif // HAL_MOUNT_ENABLED
#endif // HAL_MOUNT_ENABLED

View File

@ -8,7 +8,6 @@
#include <AP_HAL/AP_HAL.h>
#include <AP_Param/AP_Param.h>
#include <AP_Math/AP_Math.h>
#include <AP_AHRS/AP_AHRS.h>
#include "AP_Mount_Backend.h"

View File

@ -3,14 +3,14 @@
*/
#pragma once
#include <AP_HAL/AP_HAL.h>
#include <AP_AHRS/AP_AHRS.h>
#include "AP_Mount_Backend.h"
#if HAL_MOUNT_ENABLED
#include <AP_Math/AP_Math.h>
#include <AP_Common/AP_Common.h>
#include <RC_Channel/RC_Channel.h>
#include "AP_Mount_Backend.h"
#if HAL_MOUNT_ENABLED
#include <AP_AHRS/AP_AHRS.h>
#define AP_MOUNT_STORM32_RESEND_MS 1000 // resend angle targets to gimbal once per second
#define AP_MOUNT_STORM32_SEARCH_MS 60000 // search for gimbal for 1 minute after startup

View File

@ -6,8 +6,7 @@
************************************************************/
#pragma once
#include <AP_HAL/AP_HAL.h>
#include <AP_AHRS/AP_AHRS.h>
#include <AP_HAL/AP_HAL_Boards.h>
#include "AP_Mount.h"
#if HAL_SOLO_GIMBAL_ENABLED
#include "SoloGimbalEKF.h"