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

Go to the source code of this file.

Classes

struct  PX4SerialPortConfig::Port
struct  PX4SerialPortConfig::Function
struct  PX4SerialPortConfig::ParamWrite

Namespaces

namespace  PX4SerialPortConfig

Functions

bool PX4SerialPortConfig::isFunctionParam (const QVariantList &enumValues)
 true: the enum values are a PX4 serial port selection, which makes the parameter a port function
QString PX4SerialPortConfig::baudParamName (int portId)
 Baud rate parameter for a port, empty if the port has none (Ethernet, unknown ports).
QString PX4SerialPortConfig::functionLabel (const QString &paramName, const QString &shortDescription)
 Display label from a PX4 "Serial Configuration for <label>" short description.
Function PX4SerialPortConfig::makeFunction (const QString &paramName, const QString &shortDescription, const QVariantList &enumValues, const QStringList &enumStrings, int value)
 value is the function parameter's value. currentPortId is defaultPortId when it is Disabled.
QList< Port > PX4SerialPortConfig::ports (const QList< Function > &functions)
 Every port any function can run on, in port id order.
bool PX4SerialPortConfig::isSharedPort (int portId)
QStringList PX4SerialPortConfig::functionsOnPort (const QList< Function > &functions, int portId)
QList< Function > PX4SerialPortConfig::functionsForPort (const QList< Function > &functions, int portId)
QList< ParamWrite > PX4SerialPortConfig::assignPort (const QList< Function > &functions, int portId, const QString &functionParamName)
QList< ParamWrite > PX4SerialPortConfig::removeFromPort (const QList< Function > &functions, int portId, const QString &functionParamName)
 Writes which take functionParamName off portId. Empty if it isn't on the port, or the port is its default port.
QStringList PX4SerialPortConfig::optionParamNames (const QString &functionParamName, int portId)
 Extra settings shown for a function when it runs on portId.

Variables

constexpr int PX4SerialPortConfig::kDisabledPortId = 0
constexpr int PX4SerialPortConfig::kEthernetPortId = 1000