QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMFollowComponentController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QtQmlIntegration/QtQmlIntegration>
4
5
#include "
FactPanelController.h
"
6
#include "
SettingsFact.h
"
7
8
class
APMFollowComponentController
:
public
FactPanelController
9
{
10
Q_OBJECT
11
QML_ELEMENT
12
Q_PROPERTY(
Fact
*angle READ
angleFact
CONSTANT)
13
Q_PROPERTY(
Fact
*distance READ
distanceFact
CONSTANT)
14
Q_PROPERTY(
Fact
*height READ
heightFact
CONSTANT)
15
Q_PROPERTY(
bool
roverFirmware
READ
roverFirmware
CONSTANT)
16
17
public
:
18
explicit
APMFollowComponentController
(QObject *parent =
nullptr
);
19
~APMFollowComponentController
();
20
21
Fact
*
angleFact
()
const
{
return
_angleFact; }
22
Fact
*
distanceFact
()
const
{
return
_distanceFact; }
23
Fact
*
heightFact
()
const
{
return
_heightFact; }
24
bool
roverFirmware
()
const
;
25
26
private
:
27
QMap<QString, FactMetaData*> _metaDataMap;
28
29
SettingsFact
*_angleFact =
nullptr
;
30
SettingsFact
*_distanceFact =
nullptr
;
31
SettingsFact
*_heightFact =
nullptr
;
32
33
static
constexpr
const
char
*_angleName =
"angle"
;
34
static
constexpr
const
char
*_distanceName =
"distance"
;
35
static
constexpr
const
char
*_heightName =
"height"
;
36
static
constexpr
const
char
*_settingsGroup =
"APMFollow"
;
37
};
FactPanelController.h
SettingsFact.h
APMFollowComponentController
Definition
APMFollowComponentController.h:9
APMFollowComponentController::~APMFollowComponentController
~APMFollowComponentController()
Definition
APMFollowComponentController.cc:15
APMFollowComponentController::distanceFact
Fact * distanceFact() const
Definition
APMFollowComponentController.h:22
APMFollowComponentController::angleFact
Fact * angleFact() const
Definition
APMFollowComponentController.h:21
APMFollowComponentController::roverFirmware
bool roverFirmware() const
Definition
APMFollowComponentController.cc:20
APMFollowComponentController::heightFact
Fact * heightFact() const
Definition
APMFollowComponentController.h:23
FactPanelController
Used for handling missing Facts from C++ code.
Definition
FactPanelController.h:14
Fact
A Fact is used to hold a single value within the system.
Definition
Fact.h:17
SettingsFact
A SettingsFact is Fact which holds a QSettings value.
Definition
SettingsFact.h:11
src
AutoPilotPlugins
APM
APMFollowComponentController.h
Generated by
1.9.8