QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMFollowComponentController.cc
Go to the documentation of this file.
3#include "Vehicle.h"
4
5APMFollowComponentController::APMFollowComponentController(QObject *parent)
6 : FactPanelController(parent)
7 , _metaDataMap(FactMetaData::createMapFromJsonFile(QStringLiteral(":/json/APMFollowComponent.FactMetaData.json"), this))
8 , _angleFact(new SettingsFact(_settingsGroup, _metaDataMap[_angleName], this))
9 , _distanceFact(new SettingsFact(_settingsGroup, _metaDataMap[_distanceName], this))
10 , _heightFact(new SettingsFact(_settingsGroup, _metaDataMap[_heightName], this))
11{
12 // qCDebug() << Q_FUNC_INFO << this;
13}
14
15APMFollowComponentController::~APMFollowComponentController()
16{
17 // qCDebug() << Q_FUNC_INFO << this;
18}
19
20bool APMFollowComponentController::roverFirmware() const
21{
22 return !!qobject_cast<ArduRoverFirmwarePlugin*>(_vehicle->firmwarePlugin());
23}
Used for handling missing Facts from C++ code.
A SettingsFact is Fact which holds a QSettings value.
FirmwarePlugin * firmwarePlugin()
Provides access to the Firmware Plugin for this Vehicle.
Definition Vehicle.h:444