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

#include <SensorsComponent.h>

Inheritance diagram for SensorsComponent:
Collaboration diagram for SensorsComponent:

Public Member Functions

 SensorsComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QStringList setupCompleteChangedTriggerList (void) const override
virtual QString name (void) const override
virtual QString description (void) const override
QStringList searchKeywords () const override
 Translated search terms for the whole component, for pages without vehicleConfigJson() sections.
virtual QString iconResource (void) const override
virtual bool requiresSetup (void) const override
virtual int setupOrder () const override
virtual bool setupComplete (void) const override
virtual QUrl setupSource (void) const override
virtual QUrl summaryQmlSource (void) const override
QList< VehicleSummaryItem > summaryItems () const override
 Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource().
QStringList summaryChangedTriggerList () const override
 Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
Public Member Functions inherited from VehicleComponent
 VehicleComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
virtual ~VehicleComponent ()
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 &sectionId) const
QVariantMap sectionKeywords () const
 Search keywords per section, keyed by section ID. Values are original-case translatable terms.
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 &sectionId) 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)
virtual void setupTriggerSignals ()
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

Detailed Description

Definition at line 7 of file SensorsComponent.h.

Constructor & Destructor Documentation

◆ SensorsComponent()

SensorsComponent::SensorsComponent ( Vehicle * vehicle,
AutoPilotPlugin * autopilot,
QObject * parent = nullptr )

Definition at line 7 of file SensorsComponent.cc.

References VehicleComponent::VehicleComponent().

Member Function Documentation

◆ description()

QString SensorsComponent::description ( void ) const
overridevirtual

Reimplemented from VehicleComponent.

Definition at line 19 of file SensorsComponent.cc.

◆ iconResource()

QString SensorsComponent::iconResource ( void ) const
overridevirtual

Implements VehicleComponent.

Definition at line 35 of file SensorsComponent.cc.

◆ name()

QString SensorsComponent::name ( void ) const
overridevirtual

Implements VehicleComponent.

Definition at line 14 of file SensorsComponent.cc.

◆ requiresSetup()

bool SensorsComponent::requiresSetup ( void ) const
overridevirtual

Implements VehicleComponent.

Definition at line 40 of file SensorsComponent.cc.

◆ searchKeywords()

QStringList SensorsComponent::searchKeywords ( ) const
overridevirtual

Translated search terms for the whole component, for pages without vehicleConfigJson() sections.

Reimplemented from VehicleComponent.

Definition at line 26 of file SensorsComponent.cc.

◆ setupComplete()

bool SensorsComponent::setupComplete ( void ) const
overridevirtual

◆ setupCompleteChangedTriggerList()

QStringList SensorsComponent::setupCompleteChangedTriggerList ( void ) const
overridevirtual

Returns an list of parameter names for which a change should cause the setupCompleteChanged signal to be emitted.

Implements VehicleComponent.

Definition at line 68 of file SensorsComponent.cc.

◆ setupOrder()

virtual int SensorsComponent::setupOrder ( void ) const
inlineoverridevirtual

Where the component comes in the recommended order of setting up a vehicle, lowest first. Components that do not set one come after those that do.

Reimplemented from VehicleComponent.

Definition at line 27 of file SensorsComponent.h.

◆ setupSource()

QUrl SensorsComponent::setupSource ( void ) const
overridevirtual

Implements VehicleComponent.

Definition at line 85 of file SensorsComponent.cc.

◆ summaryChangedTriggerList()

QStringList SensorsComponent::summaryChangedTriggerList ( void ) const
overridevirtual

Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.

Reimplemented from VehicleComponent.

Definition at line 90 of file SensorsComponent.cc.

◆ summaryItems()

QList< VehicleSummaryItem > SensorsComponent::summaryItems ( void ) const
overridevirtual

Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource().

Reimplemented from VehicleComponent.

Definition at line 95 of file SensorsComponent.cc.

References VehicleComponent::_parameterFact(), and Fact::rawValue().

◆ summaryQmlSource()

virtual QUrl SensorsComponent::summaryQmlSource ( void ) const
inlineoverridevirtual

Implements VehicleComponent.

Definition at line 31 of file SensorsComponent.h.


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