Commit fad0c692 authored by Michael Carpenter's avatar Michael Carpenter

Implementation of Camera Gimbal configuration

parent 7f13132c
......@@ -115,6 +115,10 @@
<file>files/images/devices/BR-0004-03-2.jpg</file>
<file>files/images/devices/BR-0016-01-3T.jpg</file>
<file>files/images/devices/MinimOSD.jpg</file>
<file>files/images/devices/cameraGimalPitch1.png</file>
<file>files/images/devices/cameraGimalRoll1.png</file>
<file>files/images/devices/cameraGimalYaw.png</file>
<file>files/images/devices/Shutter.png</file>
</qresource>
<qresource prefix="/general">
<file alias="vera.ttf">files/styles/Vera.ttf</file>
......
......@@ -1017,6 +1017,11 @@ void QGCParamWidget::setParameter(int component, QString parameterName, QVariant
statusLabel->setText(tr("REJ. %1 > max").arg(value.toDouble()));
return;
}
if (parameters.value(component)->value(parameterName) == value)
{
qDebug() << "Value not changed, not sending:" << parameterName << value;
return;
}
switch (parameters.value(component)->value(parameterName).type())
{
......
This diff is collapsed.
......@@ -2,15 +2,22 @@
#define CAMERAGIMBALCONFIG_H
#include <QWidget>
#include "AP2ConfigWidget.h"
#include "ui_CameraGimbalConfig.h"
class CameraGimbalConfig : public QWidget
class CameraGimbalConfig : public AP2ConfigWidget
{
Q_OBJECT
public:
explicit CameraGimbalConfig(QWidget *parent = 0);
~CameraGimbalConfig();
private slots:
void parameterChanged(int uas, int component, QString parameterName, QVariant value);
void updateTilt();
void updateRoll();
void updatePan();
void updateShutter();
private:
Ui::CameraGimbalConfig ui;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment