QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SurveyPlanCreator.cc
Go to the documentation of this file.
1
#include "
SurveyPlanCreator.h
"
2
#include "
PlanMasterController.h
"
3
#include "
QGCMAVLink.h
"
4
#include "
SurveyComplexItem.h
"
5
6
SurveyPlanCreator::SurveyPlanCreator
(
PlanMasterController
* planMasterController)
7
:
PlanCreator
(planMasterController,
SurveyComplexItem
::tr(
SurveyComplexItem
::canonicalName), QStringLiteral(
"/qmlimages/PlanCreator/SurveyPlanCreator.png"
),
QGCMAVLink
::allVehicleClasses())
8
{
9
10
}
11
12
void
SurveyPlanCreator::createPlan
(
const
QGeoCoordinate& mapCenterCoord)
13
{
14
_planMasterController
->removeAll();
15
VisualMissionItem
* takeoffItem =
_missionController
->insertTakeoffItem(mapCenterCoord, -1);
16
_missionController
->insertComplexMissionItem(
SurveyComplexItem::canonicalName
, mapCenterCoord, -1);
17
_missionController
->insertLandItem(mapCenterCoord, -1);
18
_missionController
->setCurrentPlanViewSeqNum(takeoffItem->
sequenceNumber
(),
true
);
19
}
PlanMasterController.h
QGCMAVLink.h
SurveyComplexItem.h
SurveyPlanCreator.h
PlanCreator::_planMasterController
PlanMasterController * _planMasterController
Definition
PlanCreator.h:33
PlanCreator::_missionController
MissionController * _missionController
Definition
PlanCreator.h:34
PlanCreator::PlanCreator
PlanCreator(PlanMasterController *planMasterController, QString name, QString imageResource, QList< QGCMAVLinkTypes::VehicleClass_t > supportedVehicleClasses, bool blankPlan=false)
Definition
PlanCreator.cc:4
PlanMasterController
Master controller for mission, fence, rally.
Definition
PlanMasterController.h:21
QGCMAVLink
Definition
QGCMAVLink.h:15
SurveyComplexItem
Definition
SurveyComplexItem.h:9
SurveyComplexItem::canonicalName
static constexpr const char * canonicalName
Definition
SurveyComplexItem.h:62
SurveyPlanCreator::createPlan
Q_INVOKABLE void createPlan(const QGeoCoordinate &mapCenterCoord) final
Definition
SurveyPlanCreator.cc:12
SurveyPlanCreator::SurveyPlanCreator
SurveyPlanCreator(PlanMasterController *planMasterController)
Definition
SurveyPlanCreator.cc:6
VisualMissionItem
Definition
VisualMissionItem.h:23
VisualMissionItem::sequenceNumber
virtual int sequenceNumber(void) const =0
src
MissionManager
SurveyPlanCreator.cc
Generated by
1.15.0