CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AC_Fence/LogStructure.h
Views: 1798
1
#pragma once
2
3
#include <AP_Logger/LogStructure.h>
4
#include "AC_Fence_config.h"
5
6
#define LOG_IDS_FROM_FENCE \
7
LOG_FENCE_MSG
8
9
// @LoggerMessage: FNCE
10
// @Description: currently loaded Geo Fence points
11
// @Field: TimeUS: Time since system startup
12
// @Field: Tot: total number of stored items
13
// @Field: Seq: index in current sequence
14
// @Field: Type: point type
15
// @Field: Lat: point latitude
16
// @Field: Lng: point longitude
17
// @Field: Count: vertex cound in polygon if applicable
18
// @Field: Radius: radius of circle if applicable
19
20
struct PACKED log_Fence {
21
LOG_PACKET_HEADER;
22
uint64_t time_us;
23
uint8_t total;
24
uint8_t sequence;
25
uint8_t type;
26
int32_t latitude;
27
int32_t longitude;
28
uint8_t vertex_count;
29
float radius;
30
};
31
32
#if AP_FENCE_ENABLED
33
#define LOG_STRUCTURE_FROM_FENCE \
34
{ LOG_FENCE_MSG, sizeof(log_Fence), \
35
"FNCE", "QBBBLLBf", "TimeUS,Tot,Seq,Type,Lat,Lng,Count,Radius", "s---DU-m", "F---GG--" },
36
#else
37
#define LOG_STRUCTURE_FROM_FENCE
38
#endif
39
40