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 sections () 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 &sectionName) const override
 Returns setup-complete status for a named section. 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 title. 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 sectionsChanged ()
 
- 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.

◆ sections()

QStringList SensorsComponent::sections ( ) const
overridevirtual

Section names for sidebar navigation. Auto-populated from vehicleConfigJson() JSON. Repeat sections are expanded by probing vehicle parameters.

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 &  sectionName) const
overridevirtual

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

Reimplemented from VehicleComponent.

Definition at line 154 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 27 of file SensorsComponent.h.

◆ summaryQmlSource()

QUrl SensorsComponent::summaryQmlSource ( void  ) const
overridevirtual

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