Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AC_PrecLand/LogStructure.h
Views: 1798
#pragma once12#include <AP_Logger/LogStructure.h>3#include "AC_PrecLand_config.h"45#define LOG_IDS_FROM_PRECLAND \6LOG_PRECLAND_MSG78// @LoggerMessage: PL9// @Description: Precision Landing messages10// @Field: TimeUS: Time since system startup11// @Field: Heal: True if Precision Landing is healthy12// @Field: TAcq: True if landing target is detected13// @Field: pX: Target position relative to vehicle, X-Axis (0 if target not found)14// @Field: pY: Target position relative to vehicle, Y-Axis (0 if target not found)15// @Field: vX: Target velocity relative to vehicle, X-Axis (0 if target not found)16// @Field: vY: Target velocity relative to vehicle, Y-Axis (0 if target not found)17// @Field: mX: Target's relative to origin position as 3-D Vector, X-Axis18// @Field: mY: Target's relative to origin position as 3-D Vector, Y-Axis19// @Field: mZ: Target's relative to origin position as 3-D Vector, Z-Axis20// @Field: LastMeasMS: Time when target was last detected21// @Field: EKFOutl: EKF's outlier count22// @Field: Est: Type of estimator used2324// precision landing logging25struct PACKED log_Precland {26LOG_PACKET_HEADER;27uint64_t time_us;28uint8_t healthy;29uint8_t target_acquired;30float pos_x;31float pos_y;32float vel_x;33float vel_y;34float meas_x;35float meas_y;36float meas_z;37uint32_t last_meas;38uint32_t ekf_outcount;39uint8_t estimator;40};4142#if AC_PRECLAND_ENABLED43#define LOG_STRUCTURE_FROM_PRECLAND \44{ LOG_PRECLAND_MSG, sizeof(log_Precland), \45"PL", "QBBfffffffIIB", "TimeUS,Heal,TAcq,pX,pY,vX,vY,mX,mY,mZ,LastMeasMS,EKFOutl,Est", "s--mmnnmmms--","F--BBBBBBBC--" , true },46#else47#define LOG_STRUCTURE_FROM_PRECLAND48#endif495051