One serial port row on the PX4 Ports page. More...
#include <PX4SerialPortsController.h>
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) |
One serial port row on the PX4 Ports page.
Definition at line 19 of file PX4SerialPortsController.h.
| 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().
|
inline |
Definition at line 67 of file PX4SerialPortsController.h.
Referenced by setAssignments().
|
signal |
Referenced by setAssignments().
|
inline |
Definition at line 71 of file PX4SerialPortsController.h.
Referenced by setBaudFact().
|
signal |
Referenced by setBaudFact().
|
inline |
Definition at line 73 of file PX4SerialPortsController.h.
Referenced by setBaudLoading().
|
signal |
Referenced by setBaudLoading().
|
inline |
Definition at line 65 of file PX4SerialPortsController.h.
Referenced by setConflictText().
|
signal |
Referenced by setConflictText().
|
inline |
Definition at line 69 of file PX4SerialPortsController.h.
|
signal |
Referenced by setNoneAvailable().
|
inline |
Definition at line 63 of file PX4SerialPortsController.h.
Referenced by setFunctionEnabled().
|
signal |
Referenced by setFunctionEnabled().
|
inline |
Definition at line 61 of file PX4SerialPortsController.h.
Referenced by functionParamName(), and setFunctionIndex().
|
signal |
Referenced by setFunctionIndex().
| int PX4SerialPortRow::functionIndexOf | ( | const QString & | functionParamName | ) | const |
Definition at line 42 of file PX4SerialPortsController.cc.
References functionParamName().
|
inline |
Definition at line 57 of file PX4SerialPortsController.h.
Referenced by PX4SerialPortRow().
|
signal |
Referenced by setNoneAvailable().
| 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().
|
inline |
Definition at line 55 of file PX4SerialPortsController.h.
Referenced by PX4SerialPortRow().
|
inline |
Definition at line 75 of file PX4SerialPortsController.h.
Referenced by setOptionFacts().
|
signal |
Referenced by setOptionFacts().
|
inline |
Definition at line 77 of file PX4SerialPortsController.h.
Referenced by setOptionsLoading().
|
signal |
Referenced by setOptionsLoading().
|
inline |
Definition at line 53 of file PX4SerialPortsController.h.
Referenced by PX4SerialPortRow().
|
inline |
Definition at line 79 of file PX4SerialPortsController.h.
Referenced by setRebootRequired().
|
signal |
Referenced by setRebootRequired().
| void PX4SerialPortRow::setAssignments | ( | const QStringList & | assignments | ) |
Definition at line 81 of file PX4SerialPortsController.cc.
References assignments(), and assignmentsChanged().
| void PX4SerialPortRow::setBaudFact | ( | Fact * | baudFact | ) |
Definition at line 89 of file PX4SerialPortsController.cc.
References baudFact(), and baudFactChanged().
| void PX4SerialPortRow::setBaudLoading | ( | bool | baudLoading | ) |
Definition at line 97 of file PX4SerialPortsController.cc.
References baudLoading(), and baudLoadingChanged().
| void PX4SerialPortRow::setConflictText | ( | const QString & | conflictText | ) |
Definition at line 73 of file PX4SerialPortsController.cc.
References conflictText(), and conflictTextChanged().
| void PX4SerialPortRow::setFunctionEnabled | ( | const QVariantList & | functionEnabled | ) |
Definition at line 65 of file PX4SerialPortsController.cc.
References functionEnabled(), and functionEnabledChanged().
| void PX4SerialPortRow::setFunctionIndex | ( | int | functionIndex | ) |
Definition at line 57 of file PX4SerialPortsController.cc.
References functionIndex(), and functionIndexChanged().
| void PX4SerialPortRow::setNoneAvailable | ( | bool | noneAvailable | ) |
Definition at line 48 of file PX4SerialPortsController.cc.
References defaultFunctionOnPortChanged(), and functionLabelsChanged().
| void PX4SerialPortRow::setOptionFacts | ( | const QVariantList & | optionFacts | ) |
Definition at line 105 of file PX4SerialPortsController.cc.
References optionFacts(), and optionFactsChanged().
| void PX4SerialPortRow::setOptionsLoading | ( | bool | optionsLoading | ) |
Definition at line 113 of file PX4SerialPortsController.cc.
References optionsLoading(), and optionsLoadingChanged().
| void PX4SerialPortRow::setRebootRequired | ( | bool | rebootRequired | ) |
Definition at line 121 of file PX4SerialPortsController.cc.
References rebootRequired(), and rebootRequiredChanged().
|
inline |
Definition at line 59 of file PX4SerialPortsController.h.
Referenced by PX4SerialPortsController::setPortFunction(), and PX4SerialPortsController::setPortFunctionEnabled().