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

FirmwarePluginManager is a singleton which is used to return the correct FirmwarePlugin for a MAV_AUTOPILOT type. More...

#include <FirmwarePluginManager.h>

+ Inheritance diagram for FirmwarePluginManager:
+ Collaboration diagram for FirmwarePluginManager:

Public Member Functions

 FirmwarePluginManager (QObject *parent=nullptr)
 
 ~FirmwarePluginManager ()
 Destructor for the FirmwarePluginManager class.
 
QList< QGCMAVLink::FirmwareClass_tsupportedFirmwareClasses ()
 Returns list of firmwares which are supported by the system.
 
QList< QGCMAVLink::VehicleClass_tsupportedVehicleClasses (QGCMAVLink::FirmwareClass_t firmwareClass)
 Returns the list of supported vehicle types for the specified firmware.
 
FirmwarePluginfirmwarePluginForAutopilot (MAV_AUTOPILOT firmwareType, MAV_TYPE vehicleType)
 

Static Public Member Functions

static FirmwarePluginManagerinstance ()
 

Detailed Description

FirmwarePluginManager is a singleton which is used to return the correct FirmwarePlugin for a MAV_AUTOPILOT type.

Definition at line 14 of file FirmwarePluginManager.h.

Constructor & Destructor Documentation

◆ FirmwarePluginManager()

FirmwarePluginManager::FirmwarePluginManager ( QObject *  parent = nullptr)
explicit

Constructs an FirmwarePluginManager object.

Parameters
parentThe parent QObject.

Definition at line 12 of file FirmwarePluginManager.cc.

◆ ~FirmwarePluginManager()

FirmwarePluginManager::~FirmwarePluginManager ( )

Destructor for the FirmwarePluginManager class.

Definition at line 18 of file FirmwarePluginManager.cc.

Member Function Documentation

◆ firmwarePluginForAutopilot()

FirmwarePlugin * FirmwarePluginManager::firmwarePluginForAutopilot ( MAV_AUTOPILOT  firmwareType,
MAV_TYPE  vehicleType 
)

Returns appropriate plugin for autopilot type.

Parameters
firmwareTypeType of firmwware to return plugin for.
vehicleTypeVehicle type to return plugin for.
Returns
Singleton FirmwarePlugin instance for the specified MAV_AUTOPILOT.

Definition at line 59 of file FirmwarePluginManager.cc.

References FirmwarePluginFactory::firmwarePluginForAutopilot().

Referenced by Vehicle::_offlineFirmwareTypeSettingChanged(), MissionCommandTree::getCommandsForCategory(), and MissionCommandTree::MissionCommandTree().

◆ instance()

◆ supportedFirmwareClasses()

◆ supportedVehicleClasses()

QList< QGCMAVLink::VehicleClass_t > FirmwarePluginManager::supportedVehicleClasses ( QGCMAVLink::FirmwareClass_t  firmwareClass)

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