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

#include <PX4RadioComponent.h>

Inheritance diagram for PX4RadioComponent:
Collaboration diagram for PX4RadioComponent:

Public Member Functions

 PX4RadioComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
virtual QStringList setupCompleteChangedTriggerList (void) const
virtual QString name (void) const
virtual QString description (void) const
virtual QString iconResource (void) const
virtual bool requiresSetup (void) const
virtual int setupOrder () const
virtual bool setupComplete (void) const
virtual QUrl setupSource (void) const
virtual QUrl summaryQmlSource (void) 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 void setupTriggerSignals ()
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 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 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

Detailed Description

Definition at line 5 of file PX4RadioComponent.h.

Constructor & Destructor Documentation

◆ PX4RadioComponent()

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

Definition at line 7 of file PX4RadioComponent.cc.

References VehicleComponent::VehicleComponent().

Member Function Documentation

◆ description()

QString PX4RadioComponent::description ( void ) const
virtual

Reimplemented from VehicleComponent.

Definition at line 18 of file PX4RadioComponent.cc.

◆ iconResource()

QString PX4RadioComponent::iconResource ( void ) const
virtual

Implements VehicleComponent.

Definition at line 23 of file PX4RadioComponent.cc.

◆ name()

QString PX4RadioComponent::name ( void ) const
virtual

Implements VehicleComponent.

Definition at line 13 of file PX4RadioComponent.cc.

◆ requiresSetup()

bool PX4RadioComponent::requiresSetup ( void ) const
virtual

Implements VehicleComponent.

Definition at line 28 of file PX4RadioComponent.cc.

References VehicleComponent::_vehicle.

◆ setupComplete()

bool PX4RadioComponent::setupComplete ( void ) const
virtual

Implements VehicleComponent.

Definition at line 33 of file PX4RadioComponent.cc.

References VehicleComponent::_vehicle, and ParameterManager::defaultComponentId.

Referenced by summaryItems().

◆ setupCompleteChangedTriggerList()

QStringList PX4RadioComponent::setupCompleteChangedTriggerList ( void ) const
virtual

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

Implements VehicleComponent.

Definition at line 48 of file PX4RadioComponent.cc.

◆ setupOrder()

virtual int PX4RadioComponent::setupOrder ( void ) const
inlinevirtual

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 21 of file PX4RadioComponent.h.

◆ setupSource()

QUrl PX4RadioComponent::setupSource ( void ) const
virtual

Implements VehicleComponent.

Definition at line 53 of file PX4RadioComponent.cc.

◆ setupTriggerSignals()

void PX4RadioComponent::setupTriggerSignals ( )
virtual

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 63 of file PX4RadioComponent.cc.

References VehicleComponent::_vehicle, ParameterManager::defaultComponentId, VehicleComponent::requiresSetupChanged(), VehicleComponent::setupTriggerSignals(), and Fact::valueChanged().

◆ summaryChangedTriggerList()

QStringList PX4RadioComponent::summaryChangedTriggerList ( void ) const
virtual

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

Reimplemented from VehicleComponent.

Definition at line 58 of file PX4RadioComponent.cc.

◆ summaryItems()

QList< VehicleSummaryItem > PX4RadioComponent::summaryItems ( void ) const
virtual

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

Reimplemented from VehicleComponent.

Definition at line 71 of file PX4RadioComponent.cc.

References VehicleComponent::_parameterFact(), VehicleComponent::_vehicle, Fact::cookedValueString(), Fact::rawValue(), and setupComplete().

◆ summaryQmlSource()

virtual QUrl PX4RadioComponent::summaryQmlSource ( void ) const
inlinevirtual

Implements VehicleComponent.

Definition at line 25 of file PX4RadioComponent.h.


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