QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4FlightModeConfig.h File Reference
#include <QtCore/QList>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariantList>
Include dependency graph for PX4FlightModeConfig.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PX4FlightModeConfig::Choice

Namespaces

namespace  PX4FlightModeConfig

Enumerations

enum class  PX4FlightModeConfig::SelectionMethod { PX4FlightModeConfig::Switch , PX4FlightModeConfig::Buttons , PX4FlightModeConfig::None }

Functions

SelectionMethod PX4FlightModeConfig::selectionMethod (int modeChannel, int buttonMask)
 PX4 ignores the mode buttons while a mode channel is set.
QList< int > PX4FlightModeConfig::buttonChannels (int buttonMask)
QList< int > PX4FlightModeConfig::ignoredButtonChannels (int buttonMask)
 Channels set in RC_MAP_FLTM_BTN that PX4 ignores, because only the lowest kModeSlotCount get a slot.
int PX4FlightModeConfig::externalModeIndex (const QString &paramName, int value)
QList< Choice > PX4FlightModeConfig::modeChoices (const QString &paramName, const QStringList &enumStrings, const QVariantList &enumValues, const QStringList &externalNames, int currentValue)
QString PX4FlightModeConfig::modeName (const QString &paramName, const QStringList &enumStrings, const QVariantList &enumValues, const QStringList &externalNames, int value)
 Label of the mode a parameter value selects, as modeChoices shows it. Empty for a value with no choice.

Variables

constexpr int PX4FlightModeConfig::kModeSlotCount = 6
 Number of mode slots, COM_FLTMODE1 to COM_FLTMODE6.
constexpr int PX4FlightModeConfig::kMaxButtonChannels = 18
 Number of RC channels RC_MAP_FLTM_BTN has a bit for.