#include <FlightModesComponent.h>
Public Member Functions | |
| FlightModesComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr) | |
| QString | name (void) const final |
| QString | description (void) const final |
| QString | iconResource (void) const final |
| QUrl | setupSource (void) const final |
| QUrl | summaryQmlSource (void) 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. | |
| void | setupTriggerSignals () final |
| bool | requiresSetup () const final |
| bool | setupComplete () const final |
| QStringList | setupCompleteChangedTriggerList () 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 | allowSetupWhileArmed () const |
| virtual bool | allowSetupWhileFlying () const |
| virtual void | addSummaryQmlComponent (QQmlContext *context, QQuickItem *parent) |
| AutoPilotPlugin::KnownVehicleComponent | KnownVehicleComponent () const |
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 5 of file FlightModesComponent.h.
| FlightModesComponent::FlightModesComponent | ( | Vehicle * | vehicle, |
| AutoPilotPlugin * | autopilot, | ||
| QObject * | parent = nullptr ) |
Definition at line 15 of file FlightModesComponent.cc.
References VehicleComponent::VehicleComponent().
|
finalvirtual |
Reimplemented from VehicleComponent.
Definition at line 26 of file FlightModesComponent.cc.
|
finalvirtual |
Implements VehicleComponent.
Definition at line 31 of file FlightModesComponent.cc.
|
finalvirtual |
Implements VehicleComponent.
Definition at line 21 of file FlightModesComponent.cc.
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 23 of file FlightModesComponent.h.
References requiresSetup().
Referenced by requiresSetup().
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 24 of file FlightModesComponent.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 25 of file FlightModesComponent.h.
|
finalvirtual |
Implements VehicleComponent.
Definition at line 36 of file FlightModesComponent.cc.
|
finalvirtual |
Should be called after the component is created (but not in constructor) to setup the signals which are used to track parameter changes which affect setupComplete state.
Reimplemented from VehicleComponent.
Definition at line 52 of file FlightModesComponent.cc.
References VehicleComponent::_vehicle, Vehicle::flightModesChanged(), VehicleComponent::setupTriggerSignals(), and VehicleComponent::summaryItemsChanged().
|
finalvirtual |
Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
Reimplemented from VehicleComponent.
Definition at line 41 of file FlightModesComponent.cc.
References PX4FlightModeConfig::kModeSlotCount.
|
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 76 of file FlightModesComponent.cc.
References VehicleComponent::_parameterFact(), PX4FlightModeConfig::buttonChannels(), PX4FlightModeConfig::Buttons, Fact::enumStringValue(), PX4FlightModeConfig::kModeSlotCount, PX4FlightModeConfig::None, Fact::rawValue(), PX4FlightModeConfig::selectionMethod(), and PX4FlightModeConfig::Switch.
|
inlinefinalvirtual |
Implements VehicleComponent.
Definition at line 18 of file FlightModesComponent.h.