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

One serial port row on the PX4 Ports page. More...

#include <PX4SerialPortsController.h>

Inheritance diagram for PX4SerialPortRow:
Collaboration diagram for PX4SerialPortRow:

Signals

void functionLabelsChanged ()
void defaultFunctionOnPortChanged ()
void functionIndexChanged ()
void functionEnabledChanged ()
void conflictTextChanged ()
void assignmentsChanged ()
void baudFactChanged ()
void baudLoadingChanged ()
void optionFactsChanged ()
void optionsLoadingChanged ()
void rebootRequiredChanged ()

Public Member Functions

 PX4SerialPortRow (int portId, const QString &label, const QStringList &functionParamNames, const QStringList &functionLabels, QObject *parent=nullptr)
 true: several functions can run on the port at once, so each one is turned on or off separately
int portId () const
QString label () const
QStringList functionLabels () const
bool shared () const
int functionIndex () const
QVariantList functionEnabled () const
QString conflictText () const
QStringList assignments () const
bool defaultFunctionOnPort () const
Fact * baudFact () const
bool baudLoading () const
QVariantList optionFacts () const
bool optionsLoading () const
bool rebootRequired () const
QString functionParamName (int functionIndex) const
 Function parameter for an index into functionLabels, empty for "None".
int functionIndexOf (const QString &functionParamName) const
void setNoneAvailable (bool noneAvailable)
void setFunctionIndex (int functionIndex)
void setFunctionEnabled (const QVariantList &functionEnabled)
void setConflictText (const QString &conflictText)
void setAssignments (const QStringList &assignments)
void setBaudFact (Fact *baudFact)
void setBaudLoading (bool baudLoading)
void setOptionFacts (const QVariantList &optionFacts)
void setOptionsLoading (bool optionsLoading)
void setRebootRequired (bool rebootRequired)

Detailed Description

One serial port row on the PX4 Ports page.

Definition at line 19 of file PX4SerialPortsController.h.

Constructor & Destructor Documentation

◆ PX4SerialPortRow()

PX4SerialPortRow::PX4SerialPortRow ( int portId,
const QString & label,
const QStringList & functionParamNames,
const QStringList & functionLabels,
QObject * parent = nullptr )

true: several functions can run on the port at once, so each one is turned on or off separately

"None" first, then each function allowed on the port. "None" is left out while a function that can't be removed from its default port is on it. Function on the port, as an index into functionLabels. The first one if there is a conflict. Parallel to functionLabels: true if that function is on the port. Used for shared ports. Each function parameter that puts a function on the port, as "NAME = value" true: a function which always runs on this port unless it is assigned elsewhere is on it true: the baud rate parameter is being read from the vehicle true: some option parameters are being read from the vehicle

Definition at line 27 of file PX4SerialPortsController.cc.

References functionLabels(), label(), and portId().

Member Function Documentation

◆ assignments()

QStringList PX4SerialPortRow::assignments ( ) const
inline

Definition at line 67 of file PX4SerialPortsController.h.

Referenced by setAssignments().

◆ assignmentsChanged

void PX4SerialPortRow::assignmentsChanged ( )
signal

Referenced by setAssignments().

◆ baudFact()

Fact * PX4SerialPortRow::baudFact ( ) const
inline

Definition at line 71 of file PX4SerialPortsController.h.

Referenced by setBaudFact().

◆ baudFactChanged

void PX4SerialPortRow::baudFactChanged ( )
signal

Referenced by setBaudFact().

◆ baudLoading()

bool PX4SerialPortRow::baudLoading ( ) const
inline

Definition at line 73 of file PX4SerialPortsController.h.

Referenced by setBaudLoading().

◆ baudLoadingChanged

void PX4SerialPortRow::baudLoadingChanged ( )
signal

Referenced by setBaudLoading().

◆ conflictText()

QString PX4SerialPortRow::conflictText ( ) const
inline

Definition at line 65 of file PX4SerialPortsController.h.

Referenced by setConflictText().

◆ conflictTextChanged

void PX4SerialPortRow::conflictTextChanged ( )
signal

Referenced by setConflictText().

◆ defaultFunctionOnPort()

bool PX4SerialPortRow::defaultFunctionOnPort ( ) const
inline

Definition at line 69 of file PX4SerialPortsController.h.

◆ defaultFunctionOnPortChanged

void PX4SerialPortRow::defaultFunctionOnPortChanged ( )
signal

Referenced by setNoneAvailable().

◆ functionEnabled()

QVariantList PX4SerialPortRow::functionEnabled ( ) const
inline

Definition at line 63 of file PX4SerialPortsController.h.

Referenced by setFunctionEnabled().

◆ functionEnabledChanged

void PX4SerialPortRow::functionEnabledChanged ( )
signal

Referenced by setFunctionEnabled().

◆ functionIndex()

int PX4SerialPortRow::functionIndex ( ) const
inline

Definition at line 61 of file PX4SerialPortsController.h.

Referenced by functionParamName(), and setFunctionIndex().

◆ functionIndexChanged

void PX4SerialPortRow::functionIndexChanged ( )
signal

Referenced by setFunctionIndex().

◆ functionIndexOf()

int PX4SerialPortRow::functionIndexOf ( const QString & functionParamName) const

Definition at line 42 of file PX4SerialPortsController.cc.

References functionParamName().

◆ functionLabels()

QStringList PX4SerialPortRow::functionLabels ( ) const
inline

Definition at line 57 of file PX4SerialPortsController.h.

Referenced by PX4SerialPortRow().

◆ functionLabelsChanged

void PX4SerialPortRow::functionLabelsChanged ( )
signal

Referenced by setNoneAvailable().

◆ functionParamName()

QString PX4SerialPortRow::functionParamName ( int functionIndex) const

Function parameter for an index into functionLabels, empty for "None".

Definition at line 37 of file PX4SerialPortsController.cc.

References functionIndex().

Referenced by functionIndexOf(), PX4SerialPortsController::setPortFunction(), and PX4SerialPortsController::setPortFunctionEnabled().

◆ label()

QString PX4SerialPortRow::label ( ) const
inline

Definition at line 55 of file PX4SerialPortsController.h.

Referenced by PX4SerialPortRow().

◆ optionFacts()

QVariantList PX4SerialPortRow::optionFacts ( ) const
inline

Definition at line 75 of file PX4SerialPortsController.h.

Referenced by setOptionFacts().

◆ optionFactsChanged

void PX4SerialPortRow::optionFactsChanged ( )
signal

Referenced by setOptionFacts().

◆ optionsLoading()

bool PX4SerialPortRow::optionsLoading ( ) const
inline

Definition at line 77 of file PX4SerialPortsController.h.

Referenced by setOptionsLoading().

◆ optionsLoadingChanged

void PX4SerialPortRow::optionsLoadingChanged ( )
signal

Referenced by setOptionsLoading().

◆ portId()

int PX4SerialPortRow::portId ( ) const
inline

Definition at line 53 of file PX4SerialPortsController.h.

Referenced by PX4SerialPortRow().

◆ rebootRequired()

bool PX4SerialPortRow::rebootRequired ( ) const
inline

Definition at line 79 of file PX4SerialPortsController.h.

Referenced by setRebootRequired().

◆ rebootRequiredChanged

void PX4SerialPortRow::rebootRequiredChanged ( )
signal

Referenced by setRebootRequired().

◆ setAssignments()

void PX4SerialPortRow::setAssignments ( const QStringList & assignments)

Definition at line 81 of file PX4SerialPortsController.cc.

References assignments(), and assignmentsChanged().

◆ setBaudFact()

void PX4SerialPortRow::setBaudFact ( Fact * baudFact)

Definition at line 89 of file PX4SerialPortsController.cc.

References baudFact(), and baudFactChanged().

◆ setBaudLoading()

void PX4SerialPortRow::setBaudLoading ( bool baudLoading)

Definition at line 97 of file PX4SerialPortsController.cc.

References baudLoading(), and baudLoadingChanged().

◆ setConflictText()

void PX4SerialPortRow::setConflictText ( const QString & conflictText)

Definition at line 73 of file PX4SerialPortsController.cc.

References conflictText(), and conflictTextChanged().

◆ setFunctionEnabled()

void PX4SerialPortRow::setFunctionEnabled ( const QVariantList & functionEnabled)

Definition at line 65 of file PX4SerialPortsController.cc.

References functionEnabled(), and functionEnabledChanged().

◆ setFunctionIndex()

void PX4SerialPortRow::setFunctionIndex ( int functionIndex)

Definition at line 57 of file PX4SerialPortsController.cc.

References functionIndex(), and functionIndexChanged().

◆ setNoneAvailable()

void PX4SerialPortRow::setNoneAvailable ( bool noneAvailable)

◆ setOptionFacts()

void PX4SerialPortRow::setOptionFacts ( const QVariantList & optionFacts)

Definition at line 105 of file PX4SerialPortsController.cc.

References optionFacts(), and optionFactsChanged().

◆ setOptionsLoading()

void PX4SerialPortRow::setOptionsLoading ( bool optionsLoading)

Definition at line 113 of file PX4SerialPortsController.cc.

References optionsLoading(), and optionsLoadingChanged().

◆ setRebootRequired()

void PX4SerialPortRow::setRebootRequired ( bool rebootRequired)

Definition at line 121 of file PX4SerialPortsController.cc.

References rebootRequired(), and rebootRequiredChanged().

◆ shared()

bool PX4SerialPortRow::shared ( ) const
inline

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