QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LogViewerParamMetaData Class Reference

Enriches log parameter rows with metadata from bundled PX4 / APM FactMetaData JSON files. More...

#include <LogViewerParamMetaData.h>

Static Public Member Functions

static void enrichForPX4 (QVariantList &parameters)
 
static void enrichForAPM (QVariantList &parameters, const QString &vehicleType, int major, int minor)
 

Detailed Description

Enriches log parameter rows with metadata from bundled PX4 / APM FactMetaData JSON files.

Definition at line 8 of file LogViewerParamMetaData.h.

Member Function Documentation

◆ enrichForAPM()

void LogViewerParamMetaData::enrichForAPM ( QVariantList &  parameters,
const QString &  vehicleType,
int  major,
int  minor 
)
static

Enrich parameters from an APM DataFlash file. Adds the same keys as enrichForPX4().

Parameters
vehicleTypeAPM vehicle name: "ArduCopter", "ArduPlane", "ArduRover", "ArduSub"
major/ minor Firmware version numbers parsed from the log (pass -1 if unknown).

Definition at line 108 of file LogViewerParamMetaData.cc.

References ParameterMetaData::loadParameterFactMetaDataFile().

◆ enrichForPX4()

void LogViewerParamMetaData::enrichForPX4 ( QVariantList &  parameters)
static

Enrich parameters from a PX4 ULog file.

Each entry in parameters is a QVariantMap. On return the following keys are added (or left absent if no metadata was found for that parameter): decimalPlaces int — from FactMetaData::decimalPlaces(); -1 = unknown units QString — raw unit string (e.g. "m/s") shortDescription QString — one-line summary enumStrings QStringList — ordered enum labels (empty if not an enum) enumValues QVariantList — corresponding numeric values (parallel array)

Definition at line 92 of file LogViewerParamMetaData.cc.

References ParameterMetaData::loadParameterFactMetaDataFile().


The documentation for this class was generated from the following files: