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 <QtCore/QLoggingCategory>
6
7#include "PlanManager.h"
8
9class Vehicle;
10
11Q_DECLARE_LOGGING_CATEGORY(RallyPointManagerLog)
12
13
16{
17 Q_OBJECT
18
19public:
20 RallyPointManager(Vehicle* vehicle);
22
23 bool supported (void) const;
24 void sendToVehicle (const QList<QGeoCoordinate>& rgPoints);
25 void removeAll (void);
26 QString editorQml (void) const { return QStringLiteral("qrc:/FirmwarePlugin/RallyPointEditor.qml"); }
27 QList<QGeoCoordinate> points (void) const { return _rgPoints; }
28
36
37signals:
38 void loadComplete (void);
39 void inProgressChanged (bool inProgress);
40 void error (int errorCode, const QString& errorMsg);
42 void sendComplete (bool error);
43
44private slots:
45 void _sendComplete (bool error);
46 void _planManagerLoadComplete (bool removeAllRequested);
47
48protected:
49 void _sendError(ErrorCode_t errorCode, const QString& errorMsg);
50
51 QList<QGeoCoordinate> _rgPoints;
52 QList<QGeoCoordinate> _rgSendPoints;
53};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Error error
void inProgressChanged(bool inProgress)
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 removeAllComplete(bool error)
QList< QGeoCoordinate > _rgSendPoints
void error(int errorCode, const QString &errorMsg)
QString editorQml(void) const