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_PrecLand/LogStructure.h
Views: 1798
1
#pragma once
2
3
#include <AP_Logger/LogStructure.h>
4
#include "AC_PrecLand_config.h"
5
6
#define LOG_IDS_FROM_PRECLAND \
7
LOG_PRECLAND_MSG
8
9
// @LoggerMessage: PL
10
// @Description: Precision Landing messages
11
// @Field: TimeUS: Time since system startup
12
// @Field: Heal: True if Precision Landing is healthy
13
// @Field: TAcq: True if landing target is detected
14
// @Field: pX: Target position relative to vehicle, X-Axis (0 if target not found)
15
// @Field: pY: Target position relative to vehicle, Y-Axis (0 if target not found)
16
// @Field: vX: Target velocity relative to vehicle, X-Axis (0 if target not found)
17
// @Field: vY: Target velocity relative to vehicle, Y-Axis (0 if target not found)
18
// @Field: mX: Target's relative to origin position as 3-D Vector, X-Axis
19
// @Field: mY: Target's relative to origin position as 3-D Vector, Y-Axis
20
// @Field: mZ: Target's relative to origin position as 3-D Vector, Z-Axis
21
// @Field: LastMeasMS: Time when target was last detected
22
// @Field: EKFOutl: EKF's outlier count
23
// @Field: Est: Type of estimator used
24
25
// precision landing logging
26
struct PACKED log_Precland {
27
LOG_PACKET_HEADER;
28
uint64_t time_us;
29
uint8_t healthy;
30
uint8_t target_acquired;
31
float pos_x;
32
float pos_y;
33
float vel_x;
34
float vel_y;
35
float meas_x;
36
float meas_y;
37
float meas_z;
38
uint32_t last_meas;
39
uint32_t ekf_outcount;
40
uint8_t estimator;
41
};
42
43
#if AC_PRECLAND_ENABLED
44
#define LOG_STRUCTURE_FROM_PRECLAND \
45
{ LOG_PRECLAND_MSG, sizeof(log_Precland), \
46
"PL", "QBBfffffffIIB", "TimeUS,Heal,TAcq,pX,pY,vX,vY,mX,mY,mZ,LastMeasMS,EKFOutl,Est", "s--mmnnmmms--","F--BBBBBBBC--" , true },
47
#else
48
#define LOG_STRUCTURE_FROM_PRECLAND
49
#endif
50
51