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
 
virtual QString iconResource (void) const override
 
virtual bool requiresSetup (void) const override
 
virtual bool setupComplete (void) const override
 
virtual QUrl setupSource (void) const override
 
virtual QUrl summaryQmlSource (void) const override
 
QStringList sectionIds () const override
 
QString sectionDisplayName (const QString &sectionId) const override
 
bool showFirstSectionOnRootClick () const override
 When true, clicking the root component in the tree selects the first section instead of showing all.
 
bool sectionSetupComplete (const QString &sectionId) const override
 Returns setup-complete status for a section ID. Default returns true (no per-section tracking).
 
- 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.
 
QVariantMap sectionKeywords () const
 Search keywords per section, keyed by section ID. Values are original-case translatable terms.
 
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 setupCompleteChanged ()
 
void setupSourceChanged ()
 
void sectionIdsChanged ()
 
- Protected Slots inherited from VehicleComponent
void _triggerUpdated (QVariant)
 
- Protected Attributes inherited from VehicleComponent
Vehicle * _vehicle = nullptr
 
AutoPilotPlugin * _autopilot = nullptr
 
AutoPilotPlugin::KnownVehicleComponent _KnownVehicleComponent
 

Detailed Description

Definition at line 5 of file SensorsComponent.h.

Constructor & Destructor Documentation

◆ SensorsComponent()

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

Member Function Documentation

◆ description()

QString SensorsComponent::description ( void  ) const
overridevirtual

Reimplemented from VehicleComponent.

Definition at line 26 of file SensorsComponent.cc.

◆ iconResource()

QString SensorsComponent::iconResource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 31 of file SensorsComponent.cc.

◆ name()

QString SensorsComponent::name ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 21 of file SensorsComponent.cc.

◆ requiresSetup()

bool SensorsComponent::requiresSetup ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 36 of file SensorsComponent.cc.

◆ sectionDisplayName()

QString SensorsComponent::sectionDisplayName ( const QString &  sectionId) const
overridevirtual

Translated display name for a section ID. Default returns the ID unchanged (JSON-driven components are translated by the view using the JSON filename context).

Reimplemented from VehicleComponent.

Definition at line 118 of file SensorsComponent.cc.

◆ sectionIds()

QStringList SensorsComponent::sectionIds ( ) const
overridevirtual

Untranslated section IDs for sidebar navigation. Auto-populated from vehicleConfigJson() JSON. Repeat sections are expanded by probing vehicle parameters. IDs are stable across locales and are used for section filtering; display uses sectionDisplayName() or the JSON translation context.

Reimplemented from VehicleComponent.

Definition at line 92 of file SensorsComponent.cc.

References VehicleComponent::_vehicle, ParameterManager::defaultComponentId, ParameterManager::getParameter(), ParameterManager::parameterExists(), Vehicle::parameterManager(), and Fact::rawValue().

◆ sectionSetupComplete()

bool SensorsComponent::sectionSetupComplete ( const QString &  sectionId) const
overridevirtual

Returns setup-complete status for a section ID. Default returns true (no per-section tracking).

Reimplemented from VehicleComponent.

Definition at line 177 of file SensorsComponent.cc.

References VehicleComponent::_vehicle, ParameterManager::defaultComponentId, ParameterManager::getParameter(), Vehicle::parameterManager(), and Fact::rawValue().

◆ setupComplete()

◆ 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 75 of file SensorsComponent.cc.

References VehicleComponent::_vehicle, Vehicle::airship(), Vehicle::fixedWing(), and Vehicle::vtol().

◆ setupSource()

QUrl SensorsComponent::setupSource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 87 of file SensorsComponent.cc.

◆ showFirstSectionOnRootClick()

bool SensorsComponent::showFirstSectionOnRootClick ( ) const
inlineoverridevirtual

When true, clicking the root component in the tree selects the first section instead of showing all.

Reimplemented from VehicleComponent.

Definition at line 28 of file SensorsComponent.h.

◆ summaryQmlSource()

QUrl SensorsComponent::summaryQmlSource ( void  ) const
overridevirtual

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