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/AP_Baro/LogStructure.h
Views: 1798
#pragma once12#include <AP_Logger/LogStructure.h>34#define LOG_IDS_FROM_BARO \5LOG_BARO_MSG, \6LOG_BARD_MSG78// @LoggerMessage: BARO9// @Description: Gathered Barometer data10// @Field: TimeUS: Time since system startup11// @Field: I: barometer sensor instance number12// @Field: Alt: calculated altitude13// @Field: AltAMSL: altitude AMSL14// @Field: Press: measured atmospheric pressure15// @Field: Temp: measured atmospheric temperature16// @Field: CRt: derived climb rate from primary barometer17// @Field: SMS: time last sample was taken18// @Field: Offset: raw adjustment of barometer altitude, zeroed on calibration, possibly set by GCS19// @Field: GndTemp: temperature on ground, specified by parameter or measured while on ground20// @Field: Health: true if barometer is considered healthy21struct PACKED log_BARO {22LOG_PACKET_HEADER;23uint64_t time_us;24uint8_t instance;25float altitude;26float altitude_AMSL;27float pressure;28int16_t temperature;29float climbrate;30uint32_t sample_time_ms;31float drift_offset;32float ground_temp;33uint8_t healthy;34};3536// @LoggerMessage: BARD37// @Description: Barometer dynamic data38// @Field: TimeUS: Time since system startup39// @Field: I: barometer sensor instance number40// @Field: DynPrX: calculated dynamic pressure in the bodyframe X-axis41// @Field: DynPrY: calculated dynamic pressure in the bodyframe Y-axis42// @Field: DynPrZ: calculated dynamic pressure in the bodyframe Z-axis43struct PACKED log_BARD {44LOG_PACKET_HEADER;45uint64_t time_us;46uint8_t instance;47float dyn_pressure_x;48float dyn_pressure_y;49float dyn_pressure_z;50};5152#define LOG_STRUCTURE_FROM_BARO \53{ LOG_BARO_MSG, sizeof(log_BARO), \54"BARO", \55"Q" "B" "f" "f" "f" "c" "f" "I" "f" "f" "B", \56"TimeUS," "I," "Alt," "AltAMSL," "Press," "Temp," "CRt," "SMS," "Offset," "GndTemp," "Health", \57"s" "#" "m" "m" "P" "O" "n" "s" "m" "O" "-", \58"F" "-" "0" "0" "0" "B" "0" "C" "?" "0" "-", \59true \60}, \61{ LOG_BARD_MSG, sizeof(log_BARD), \62"BARD", \63"Q" "B" "fff", \64"TimeUS," "I," "DynPrX,DynPrY,DynPrZ", \65"s" "#" "PPP", \66"F" "-" "000", \67true \68},697071