QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SurveyPlanCreator.cc
Go to the documentation of this file.
1#include "SurveyPlanCreator.h"
3#include "QGCMAVLink.h"
4#include "SurveyComplexItem.h"
5
7 : PlanCreator(planMasterController, SurveyComplexItem::tr(SurveyComplexItem::canonicalName), QStringLiteral("/qmlimages/PlanCreator/SurveyPlanCreator.png"), QGCMAVLink::allVehicleClasses())
8{
9
10}
11
12void SurveyPlanCreator::createPlan(const QGeoCoordinate& mapCenterCoord)
13{
15 VisualMissionItem* takeoffItem = _missionController->insertTakeoffItem(mapCenterCoord, -1);
17 _missionController->insertLandItem(mapCenterCoord, -1);
19}
Q_INVOKABLE VisualMissionItem * insertComplexMissionItem(QString itemName, QGeoCoordinate mapCenterCoordinate, int visualItemIndex, bool makeCurrentItem=false)
Q_INVOKABLE VisualMissionItem * insertTakeoffItem(QGeoCoordinate coordinate, int visualItemIndex, bool makeCurrentItem=false)
Q_INVOKABLE VisualMissionItem * insertLandItem(QGeoCoordinate coordinate, int visualItemIndex, bool makeCurrentItem=false)
Q_INVOKABLE void setCurrentPlanViewSeqNum(int sequenceNumber, bool force)
Base class for PlanCreator objects which are used to create a full plan in a single step.
Definition PlanCreator.h:16
PlanMasterController * _planMasterController
Definition PlanCreator.h:33
MissionController * _missionController
Definition PlanCreator.h:34
Master controller for mission, fence, rally.
Q_INVOKABLE void removeAll(void)
Removes all from controller only, sync required to remove from vehicle.
static constexpr const char * canonicalName
Q_INVOKABLE void createPlan(const QGeoCoordinate &mapCenterCoord) final
SurveyPlanCreator(PlanMasterController *planMasterController)
virtual int sequenceNumber(void) const =0