AP_Logger: remove requirement to know storage type of fence item in headers

This commit is contained in:
Peter Barker 2023-06-24 10:03:25 +10:00 committed by Peter Barker
parent 023316b269
commit e5dda42056
5 changed files with 13 additions and 5 deletions

View File

@ -15,6 +15,10 @@
#include <AP_Rally/AP_Rally.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#if HAL_LOGGER_FENCE_ENABLED
#include <AC_Fence/AC_Fence.h>
#endif
AP_Logger *AP_Logger::_singleton;
extern const AP_HAL::HAL& hal;

View File

@ -12,10 +12,6 @@
#include <AP_Logger/LogStructure.h>
#include <AP_Vehicle/ModeReason.h>
#if HAL_LOGGER_FENCE_ENABLED
#include <AC_Fence/AC_Fence.h>
#endif
#include <stdint.h>
#include "LoggerMessageWriter.h"

View File

@ -8,6 +8,10 @@
#include <AP_Rally/AP_Rally.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#if HAL_LOGGER_FENCE_ENABLED
#include <AC_Fence/AC_Fence.h>
#endif
extern const AP_HAL::HAL& hal;
AP_Logger_Backend::AP_Logger_Backend(AP_Logger &front,

View File

@ -124,7 +124,7 @@ public:
const class RallyLocation &rally_point);
bool Write_Rally();
#if HAL_LOGGER_FENCE_ENABLED
bool Write_FencePoint(uint8_t total, uint8_t sequence, const AC_PolyFenceItem &fence_point);
bool Write_FencePoint(uint8_t total, uint8_t sequence, const class AC_PolyFenceItem &fence_point);
bool Write_Fence();
#endif
bool Write_Format(const struct LogStructure *structure);

View File

@ -3,6 +3,10 @@
#include <AP_Scheduler/AP_Scheduler.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#if HAL_LOGGER_FENCE_ENABLED
#include <AC_Fence/AC_Fence.h>
#endif
#define FORCE_VERSION_H_INCLUDE
#include "ap_version.h"
#undef FORCE_VERSION_H_INCLUDE