mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Logger: remove requirement to know storage type of fence item in headers
This commit is contained in:
parent
023316b269
commit
e5dda42056
@ -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;
|
||||
|
@ -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"
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user