QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
Parameter Struct Reference

#include <Common.h>

Public Types

enum class  DisplayOption { Default , BoolTrueIfPositive , Bitset }
 

Public Member Functions

void parse (const QJsonValue &jsonValue)
 

Public Attributes

QString label {}
 
QString name {}
 vehicle parameter name, this may have an index in the form '${i}'
 
int indexOffset {}
 extra offset to the ${i} index, or bitset shift offset
 
DisplayOption displayOption {DisplayOption::Default}
 
bool advanced {false}
 whether this should only be shown as advanced option
 

Detailed Description

Represents a per-channel or per-item vehicle configuration parameter

Definition at line 18 of file Common.h.

Member Enumeration Documentation

◆ DisplayOption

enum class Parameter::DisplayOption
strong
Enumerator
Default 
BoolTrueIfPositive 

Show checkbox for float/int value.

Bitset 

integer displayed as boolean (checkbox), where the index defines the bit

Definition at line 19 of file Common.h.

Member Function Documentation

◆ parse()

void Parameter::parse ( const QJsonValue &  jsonValue)

Definition at line 8 of file Common.cc.

Member Data Documentation

◆ advanced

bool Parameter::advanced {false}

whether this should only be shown as advanced option

Definition at line 29 of file Common.h.

Referenced by ActuatorOutputs::ChannelConfig::advanced(), and Mixer::ChannelConfig::advanced().

◆ displayOption

◆ indexOffset

int Parameter::indexOffset {}

extra offset to the ${i} index, or bitset shift offset

Definition at line 27 of file Common.h.

Referenced by ActuatorOutputs::ChannelConfig::indexOffset(), and Mixer::ChannelConfig::indexOffset().

◆ label

QString Parameter::label {}

◆ name

QString Parameter::name {}

vehicle parameter name, this may have an index in the form '${i}'

Definition at line 26 of file Common.h.

Referenced by Mixer::ChannelConfig::instantiate(), and ActuatorOutputs::ChannelConfig::parameter().


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