Path: blob/master/libraries/AC_Fence/LogStructure.h
9573 views
#pragma once12#include <AP_Logger/LogStructure.h>3#include "AC_Fence_config.h"45#define LOG_IDS_FROM_FENCE \6LOG_FENCE_MSG78// @LoggerMessage: FNCE9// @Description: currently loaded Geo Fence points10// @Field: TimeUS: Time since system startup11// @Field: Tot: total number of stored items12// @Field: Seq: index in current sequence13// @Field: Type: point type14// @Field: Lat: point latitude15// @Field: Lng: point longitude16// @Field: Count: vertex cound in polygon if applicable17// @Field: Radius: radius of circle if applicable1819struct PACKED log_Fence {20LOG_PACKET_HEADER;21uint64_t time_us;22uint8_t total;23uint8_t sequence;24uint8_t type;25int32_t latitude;26int32_t longitude;27uint8_t vertex_count;28float radius;29};3031#if AP_FENCE_ENABLED32#define LOG_STRUCTURE_FROM_FENCE \33{ LOG_FENCE_MSG, sizeof(log_Fence), \34"FNCE", "QBBBLLBf", "TimeUS,Tot,Seq,Type,Lat,Lng,Count,Radius", "s---DU-m", "F---GG--" },35#else36#define LOG_STRUCTURE_FROM_FENCE37#endif383940