#include <PX4SerialPortsComponent.h>
Public Member Functions | |
| PX4SerialPortsComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr) | |
| QStringList | setupCompleteChangedTriggerList () const final |
| QString | name () const final |
| QString | description () const final |
| QString | iconResource () const final |
| bool | requiresSetup () const final |
| bool | setupComplete () const final |
| QUrl | setupSource () const final |
| QUrl | summaryQmlSource () const final |
| QList< VehicleSummaryItem > | summaryItems () const final |
| Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource(). | |
| QStringList | summaryChangedTriggerList () const final |
| Parameters whose change emits summaryItemsChanged, besides those that change setupComplete. | |
| bool | allowSetupWhileArmed () const final |
| Public Member Functions inherited from VehicleComponent | |
| VehicleComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr) | |
| virtual | ~VehicleComponent () |
| virtual int | setupOrder () const |
| virtual QString | vehicleConfigJson () const |
| Resource path to a VehicleConfig.json page definition, or empty if none. | |
| virtual QStringList | sectionIds () const |
| virtual Q_INVOKABLE QString | sectionDisplayName (const QString §ionId) const |
| QVariantMap | sectionKeywords () const |
| Search keywords per section, keyed by section ID. Values are original-case translatable terms. | |
| virtual QStringList | searchKeywords () const |
| Translated search terms for the whole component, for pages without vehicleConfigJson() sections. | |
| virtual bool | showFirstSectionOnRootClick () const |
| When true, clicking the root component in the tree selects the first section instead of showing all. | |
| virtual Q_INVOKABLE bool | sectionSetupComplete (const QString §ionId) const |
| Returns setup-complete status for a section ID. Default returns true (no per-section tracking). | |
| virtual bool | allowSetupWhileFlying () const |
| virtual void | addSummaryQmlComponent (QQmlContext *context, QQuickItem *parent) |
| virtual void | setupTriggerSignals () |
| AutoPilotPlugin::KnownVehicleComponent | KnownVehicleComponent () const |
Static Public Member Functions | |
| static QList< Fact * > | functionFacts (ParameterManager *parameterManager) |
| Parameters which select the serial port a function runs on. The page is only shown when there are some. | |
Additional Inherited Members | |
| Signals inherited from VehicleComponent | |
| void | requiresSetupChanged () |
| void | setupCompleteChanged () |
| void | summaryItemsChanged () |
| void | setupSourceChanged () |
| void | sectionIdsChanged () |
| Protected Slots inherited from VehicleComponent | |
| void | _triggerUpdated (QVariant) |
| Protected Member Functions inherited from VehicleComponent | |
| Fact * | _parameterFact (const QString &name) const |
| Fact of a parameter of the default component, nullptr when the vehicle does not have it. | |
| Static Protected Member Functions inherited from VehicleComponent | |
| static QString | _valueWithUnits (const Fact *fact) |
| The fact's value followed by its units, when it has any. | |
| Protected Attributes inherited from VehicleComponent | |
| Vehicle * | _vehicle = nullptr |
| AutoPilotPlugin * | _autopilot = nullptr |
| AutoPilotPlugin::KnownVehicleComponent | _KnownVehicleComponent |
Definition at line 8 of file PX4SerialPortsComponent.h.
| PX4SerialPortsComponent::PX4SerialPortsComponent | ( | Vehicle * | vehicle, |
| AutoPilotPlugin * | autopilot, | ||
| QObject * | parent = nullptr ) |
Definition at line 8 of file PX4SerialPortsComponent.cc.
References VehicleComponent::VehicleComponent().
|
inlinefinalvirtual |
Reimplemented from VehicleComponent.
Definition at line 37 of file PX4SerialPortsComponent.h.
References allowSetupWhileArmed().
Referenced by allowSetupWhileArmed().
|
finalvirtual |
Reimplemented from VehicleComponent.
Definition at line 30 of file PX4SerialPortsComponent.cc.
|
static |
Parameters which select the serial port a function runs on. The page is only shown when there are some.
Definition at line 13 of file PX4SerialPortsComponent.cc.
References ParameterManager::defaultComponentId, Fact::enumValues(), ParameterManager::getParameter(), PX4SerialPortConfig::isFunctionParam(), name(), and ParameterManager::parameterNames().
Referenced by PX4SerialPortsController::PX4SerialPortsController(), summaryChangedTriggerList(), summaryItems(), and PX4AutoPilotPlugin::vehicleComponents().
|
finalvirtual |
Implements VehicleComponent.
Definition at line 35 of file PX4SerialPortsComponent.cc.
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 21 of file PX4SerialPortsComponent.h.
Referenced by functionFacts().
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 26 of file PX4SerialPortsComponent.h.
References requiresSetup().
Referenced by requiresSetup().
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 28 of file PX4SerialPortsComponent.h.
|
inlinefinalvirtual |
Returns an list of parameter names for which a change should cause the setupCompleteChanged signal to be emitted.
Implements VehicleComponent.
Definition at line 19 of file PX4SerialPortsComponent.h.
|
finalvirtual |
Implements VehicleComponent.
Definition at line 40 of file PX4SerialPortsComponent.cc.
|
finalvirtual |
Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
Reimplemented from VehicleComponent.
Definition at line 46 of file PX4SerialPortsComponent.cc.
References VehicleComponent::_vehicle, and functionFacts().
|
finalvirtual |
Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource().
Reimplemented from VehicleComponent.
Definition at line 56 of file PX4SerialPortsComponent.cc.
References VehicleComponent::_vehicle, functionFacts(), PX4SerialPortConfig::makeFunction(), and PX4SerialPortConfig::ports().
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 32 of file PX4SerialPortsComponent.h.
References summaryQmlSource().
Referenced by summaryQmlSource().