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

#include <APMFlightSafetyComponent.h>

Inheritance diagram for APMFlightSafetyComponent:
Collaboration diagram for APMFlightSafetyComponent:

Public Member Functions

 APMFlightSafetyComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QStringList setupCompleteChangedTriggerList () const final
QString name () const final
QString description () const final
QString vehicleConfigJson () const final
 Resource path to a VehicleConfig.json page definition, or empty if none.
QString iconResource () const final
bool requiresSetup () const final
bool setupComplete () const final
QUrl setupSource () const final
QUrl summaryQmlSource () const final
bool allowSetupWhileArmed () const final
bool allowSetupWhileFlying () 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 QList< VehicleSummaryItem > summaryItems () const
 Values for this component's card on the Summary page. A component with none falls back to summaryQmlSource().
virtual QStringList summaryChangedTriggerList () const
 Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
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 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 &sectionId) const
 Returns setup-complete status for a section ID. Default returns true (no per-section tracking).
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 5 of file APMFlightSafetyComponent.h.

Constructor & Destructor Documentation

◆ APMFlightSafetyComponent()

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

Definition at line 5 of file APMFlightSafetyComponent.cc.

References VehicleComponent::VehicleComponent().

Member Function Documentation

◆ allowSetupWhileArmed()

bool APMFlightSafetyComponent::allowSetupWhileArmed ( void ) const
inlinefinalvirtual

Reimplemented from VehicleComponent.

Definition at line 22 of file APMFlightSafetyComponent.h.

References allowSetupWhileArmed().

Referenced by allowSetupWhileArmed().

◆ allowSetupWhileFlying()

bool APMFlightSafetyComponent::allowSetupWhileFlying ( void ) const
inlinefinalvirtual

Reimplemented from VehicleComponent.

Definition at line 23 of file APMFlightSafetyComponent.h.

◆ description()

QString APMFlightSafetyComponent::description ( void ) const
finalvirtual

Reimplemented from VehicleComponent.

Definition at line 16 of file APMFlightSafetyComponent.cc.

References VehicleComponent::_vehicle.

◆ iconResource()

QString APMFlightSafetyComponent::iconResource ( void ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 17 of file APMFlightSafetyComponent.h.

References iconResource().

Referenced by iconResource().

◆ name()

QString APMFlightSafetyComponent::name ( void ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 14 of file APMFlightSafetyComponent.h.

◆ requiresSetup()

bool APMFlightSafetyComponent::requiresSetup ( void ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 18 of file APMFlightSafetyComponent.h.

◆ setupComplete()

bool APMFlightSafetyComponent::setupComplete ( void ) const
inlinefinalvirtual

Implements VehicleComponent.

Definition at line 19 of file APMFlightSafetyComponent.h.

◆ setupCompleteChangedTriggerList()

QStringList APMFlightSafetyComponent::setupCompleteChangedTriggerList ( ) const
inlinefinalvirtual

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

Implements VehicleComponent.

Definition at line 12 of file APMFlightSafetyComponent.h.

◆ setupSource()

QUrl APMFlightSafetyComponent::setupSource ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 30 of file APMFlightSafetyComponent.cc.

References VehicleComponent::_vehicle.

◆ summaryQmlSource()

QUrl APMFlightSafetyComponent::summaryQmlSource ( void ) const
finalvirtual

Implements VehicleComponent.

Definition at line 50 of file APMFlightSafetyComponent.cc.

References VehicleComponent::_vehicle.

◆ vehicleConfigJson()

QString APMFlightSafetyComponent::vehicleConfigJson ( ) const
finalvirtual

Resource path to a VehicleConfig.json page definition, or empty if none.

Reimplemented from VehicleComponent.

Definition at line 11 of file APMFlightSafetyComponent.cc.


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