6 changed files with 77 additions and 0 deletions
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* (c) 2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
|
||||
* |
||||
* QGroundControl is licensed according to the terms in the file |
||||
* COPYING.md in the root of the source code directory. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#include "CompInfoActuators.h" |
||||
#include "Vehicle.h" |
||||
|
||||
CompInfoActuators::CompInfoActuators(uint8_t compId, Vehicle* vehicle, QObject* parent) |
||||
: CompInfo(COMP_METADATA_TYPE_ACTUATORS, compId, vehicle, parent) |
||||
{ |
||||
|
||||
} |
||||
|
||||
void CompInfoActuators::setJson(const QString& metadataJsonFileName, const QString& translationJsonFileName) |
||||
{ |
||||
if (!metadataJsonFileName.isEmpty()) { |
||||
vehicle->setActuatorsMetadata(compId, metadataJsonFileName, translationJsonFileName); |
||||
} |
||||
} |
||||
|
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* (c) 2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
|
||||
* |
||||
* QGroundControl is licensed according to the terms in the file |
||||
* COPYING.md in the root of the source code directory. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#pragma once |
||||
|
||||
#include "CompInfo.h" |
||||
|
||||
#include <QObject> |
||||
|
||||
class FactMetaData; |
||||
class Vehicle; |
||||
class FirmwarePlugin; |
||||
|
||||
class CompInfoActuators : public CompInfo |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
CompInfoActuators(uint8_t compId, Vehicle* vehicle, QObject* parent = nullptr); |
||||
|
||||
// Overrides from CompInfo
|
||||
void setJson(const QString& metadataJsonFileName, const QString& translationJsonFileName) override; |
||||
|
||||
private: |
||||
}; |
Loading…
Reference in new issue