mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 08:00:34 +08:00
Remove include <log.h> from defines.h
The reason for this is that log.h includes drv_hrt.h which sucks in half the project's include files with it, which causes strange build issues
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <matrix/matrix/math.hpp>
|
||||
#include <px4_platform_common/defines.h>
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#define EKF_ESTIMATOR_INTERFACE_H
|
||||
|
||||
#if defined(MODULE_NAME)
|
||||
#include <px4_platform_common/log.h>
|
||||
# define ECL_INFO PX4_DEBUG
|
||||
# define ECL_WARN PX4_DEBUG
|
||||
# define ECL_ERR PX4_DEBUG
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <matrix/matrix/math.hpp>
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include <px4_platform_common/defines.h>
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
|
||||
namespace gimbal
|
||||
{
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "input_test.h"
|
||||
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <lib/matrix/matrix/math.hpp>
|
||||
#include <lib/mathlib/mathlib.h>
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <mathlib/mathlib.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include <px4_platform_common/crypto.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#ifdef __PX4_NUTTX
|
||||
#include <systemlib/hardfault_log.h>
|
||||
#endif /* __PX4_NUTTX */
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
|
||||
#include "mavlink_shell.h"
|
||||
#include <px4_platform_common/defines.h>
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
Reference in New Issue
Block a user