mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
AP_Vehicle: stop libraries including AP_Logger.h in .h files
AP_Logger.h is a nexus of includes; while this is being improved over time, there's no reason for the library headers to include AP_Logger.h as the logger itself is access by singleton and the structures are in LogStructure.h This necessitated moving The PID_Info structure out of AP_Logger's namespace. This cleans up a pretty nasty bit - that structure is definitely not simply used for logging, but also used to pass pid information around to controllers! There are a lot of patches in here because AP_Logger.h, acting as a nexus, was providing transitive header file inclusion in many (some unlikely!) places.
This commit is contained in:
parent
e1dd53eb17
commit
c829b109bf
@ -4,8 +4,10 @@
|
||||
#include <AP_Common/AP_FWVersion.h>
|
||||
#include <AP_Arming/AP_Arming.h>
|
||||
#include <AP_Frsky_Telem/AP_Frsky_Parameters.h>
|
||||
#include <AP_Logger/AP_Logger.h>
|
||||
#include <AP_Mission/AP_Mission.h>
|
||||
#include <AP_OSD/AP_OSD.h>
|
||||
#include <SRV_Channel/SRV_Channel.h>
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
#include <AP_HAL_ChibiOS/sdcard.h>
|
||||
#endif
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include "ModeReason.h" // reasons can't be defined in this header due to circular loops
|
||||
|
||||
#include <AP_AHRS/AP_AHRS.h>
|
||||
#include <AP_Airspeed/AP_Airspeed.h>
|
||||
#include <AP_Baro/AP_Baro.h>
|
||||
#include <AP_BoardConfig/AP_BoardConfig.h> // board configuration library
|
||||
#include <AP_CANManager/AP_CANManager.h>
|
||||
@ -29,7 +31,6 @@
|
||||
#include <AP_EFI/AP_EFI.h>
|
||||
#include <AP_GPS/AP_GPS.h>
|
||||
#include <AP_Generator/AP_Generator.h>
|
||||
#include <AP_Logger/AP_Logger.h>
|
||||
#include <AP_Notify/AP_Notify.h> // Notify library
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_RangeFinder/AP_RangeFinder.h>
|
||||
|
Loading…
Reference in New Issue
Block a user