QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PlanCreator.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QList>
4#include <QtCore/QObject>
5#include <QtCore/QString>
6#include <QtPositioning/QGeoCoordinate>
7
8#include "QGCMAVLinkTypes.h"
9
12
15class PlanCreator : public QObject
16{
17 Q_OBJECT
18
19public:
21 PlanCreator(PlanMasterController* planMasterController, QString name, QString imageResource, QList<QGCMAVLinkTypes::VehicleClass_t> supportedVehicleClasses, bool blankPlan = false);
22
23 Q_PROPERTY(QString name MEMBER _name CONSTANT)
24 Q_PROPERTY(QString imageResource MEMBER _imageResource CONSTANT)
25 Q_PROPERTY(bool blankPlan MEMBER _blankPlan CONSTANT)
26
27 Q_INVOKABLE virtual void createPlan(const QGeoCoordinate& mapCenterCoord) = 0;
28
30 bool supportsVehicleClass(QGCMAVLinkTypes::VehicleClass_t vehicleClass) const;
31
32protected:
35
36private:
37 QString _name;
38 QString _imageResource;
39 bool _blankPlan = false;
40 QList<QGCMAVLinkTypes::VehicleClass_t> _supportedVehicleClasses;
41};
Base class for PlanCreator objects which are used to create a full plan in a single step.
Definition PlanCreator.h:16
virtual Q_INVOKABLE void createPlan(const QGeoCoordinate &mapCenterCoord)=0
PlanMasterController * _planMasterController
Definition PlanCreator.h:33
bool supportsVehicleClass(QGCMAVLinkTypes::VehicleClass_t vehicleClass) const
Returns true if this creator supports the given vehicle class.
MissionController * _missionController
Definition PlanCreator.h:34
Master controller for mission, fence, rally.