Path: blob/master/libraries/AP_Beacon/LogStructure.h
9526 views
#pragma once12#include <AP_Logger/LogStructure.h>3#include "AP_Beacon_config.h"45#define LOG_IDS_FROM_BEACON \6LOG_BEACON_MSG78// @LoggerMessage: BCN9// @Description: Beacon information10// @Field: TimeUS: Time since system startup11// @Field: Health: True if beacon sensor is healthy12// @Field: Cnt: Number of beacons being used13// @Field: D0: Distance to first beacon14// @Field: D1: Distance to second beacon15// @Field: D2: Distance to third beacon16// @Field: D3: Distance to fourth beacon17// @Field: PosX: Calculated beacon position, x-axis18// @Field: PosY: Calculated beacon position, y-axis19// @Field: PosZ: Calculated beacon position, z-axis2021struct PACKED log_Beacon {22LOG_PACKET_HEADER;23uint64_t time_us;24uint8_t health;25uint8_t count;26float dist0;27float dist1;28float dist2;29float dist3;30float posx;31float posy;32float posz;33};3435#if AP_BEACON_ENABLED36#define LOG_STRUCTURE_FROM_BEACON \37{ LOG_BEACON_MSG, sizeof(log_Beacon), \38"BCN", "QBBfffffff", "TimeUS,Health,Cnt,D0,D1,D2,D3,PosX,PosY,PosZ", "s--mmmmmmm", "F--0000000", true },39#else40#define LOG_STRUCTURE_FROM_BEACON41#endif424344