QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RallyPointManager.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QObject>
4#include <QtPositioning/QGeoCoordinate>
5#include "PlanManager.h"
6
7class Vehicle;
8
11
13{
14 Q_OBJECT
15
16public:
17 RallyPointManager(Vehicle* vehicle);
19
20 bool supported (void) const;
21 void sendToVehicle (const QList<QGeoCoordinate>& rgPoints);
22 void removeAll (void);
23 QString editorQml (void) const { return QStringLiteral("qrc:/FirmwarePlugin/RallyPointEditor.qml"); }
24 QList<QGeoCoordinate> points (void) const { return _rgPoints; }
25
33
34signals:
35 void loadComplete (void);
37 void error (int errorCode, const QString& errorMsg);
39 void sendComplete (bool error);
40
41private slots:
42 void _sendComplete (bool error);
43 void _planManagerLoadComplete (bool removeAllRequested);
44
45protected:
46 void _sendError(ErrorCode_t errorCode, const QString& errorMsg);
47
48 QList<QGeoCoordinate> _rgPoints;
49 QList<QGeoCoordinate> _rgSendPoints;
50};
Error error
The PlanManager class is the base class for the Mission, GeoFence and Rally Point managers....
Definition PlanManager.h:14
bool inProgress(void) const
This is the base class for firmware specific rally point managers. A rally point manager is responsib...
void inProgressChanged(bool inProgress)
void sendToVehicle(const QList< QGeoCoordinate > &rgPoints)
bool supported(void) const
ErrorCode_t
Error codes returned in error signal.
@ TooFewPoints
Too few points for valid geofence.
@ TooManyPoints
Too many points for valid geofence.
void loadComplete(void)
void sendComplete(bool error)
QList< QGeoCoordinate > _rgPoints
QList< QGeoCoordinate > points(void) const
void _sendError(ErrorCode_t errorCode, const QString &errorMsg)
void removeAllComplete(bool error)
QList< QGeoCoordinate > _rgSendPoints
void error(int errorCode, const QString &errorMsg)
QString editorQml(void) const