From 97d2bf457c1122975da5a9115c89735767d2afca Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 15 Aug 2013 10:30:05 +0200 Subject: [PATCH] Merged PX4 config widget --- qgroundcontrol.pro | 9 +- .../px4_configuration/QGCPX4AirframeConfig.cc | 14 + .../px4_configuration/QGCPX4AirframeConfig.h | 22 ++ .../px4_configuration/QGCPX4AirframeConfig.ui | 318 ++++++++++++++++++ 4 files changed, 360 insertions(+), 3 deletions(-) create mode 100644 src/ui/px4_configuration/QGCPX4AirframeConfig.cc create mode 100644 src/ui/px4_configuration/QGCPX4AirframeConfig.h create mode 100644 src/ui/px4_configuration/QGCPX4AirframeConfig.ui diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index cf714d579..cddca39f9 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -269,7 +269,8 @@ FORMS += src/ui/MainWindow.ui \ src/ui/main/QGCWelcomeMainWindow.ui \ src/ui/configuration/terminalconsole.ui \ src/ui/configuration/SerialSettingsDialog.ui \ - src/ui/configuration/ApmFirmwareConfig.ui + src/ui/configuration/ApmFirmwareConfig.ui \ + src/ui/px4_configuration/QGCPX4AirframeConfig.ui INCLUDEPATH += src \ src/ui \ @@ -471,7 +472,8 @@ HEADERS += src/MG.h \ src/ui/configuration/ApmFirmwareConfig.h \ src/uas/UASParameterDataModel.h \ src/uas/UASParameterCommsMgr.h \ - src/ui/QGCPendingParamWidget.h + src/ui/QGCPendingParamWidget.h \ + src/ui/px4_configuration/QGCPX4AirframeConfig.h # Google Earth is only supported on Mac OS and Windows with Visual Studio Compiler macx|macx-g++|macx-g++42|win32-msvc2008|win32-msvc2010|win32-msvc2012::HEADERS += src/ui/map3D/QGCGoogleEarthView.h @@ -689,7 +691,8 @@ SOURCES += src/main.cc \ src/ui/configuration/ApmFirmwareConfig.cc \ src/uas/UASParameterDataModel.cc \ src/uas/UASParameterCommsMgr.cc \ - src/ui/QGCPendingParamWidget.cc + src/ui/QGCPendingParamWidget.cc \ + src/ui/px4_configuration/QGCPX4AirframeConfig.cc # Enable Google Earth only on Mac OS and Windows with Visual Studio compiler macx|macx-g++|macx-g++42|win32-msvc2008|win32-msvc2010|win32-msvc2012::SOURCES += src/ui/map3D/QGCGoogleEarthView.cc diff --git a/src/ui/px4_configuration/QGCPX4AirframeConfig.cc b/src/ui/px4_configuration/QGCPX4AirframeConfig.cc new file mode 100644 index 000000000..6c448b329 --- /dev/null +++ b/src/ui/px4_configuration/QGCPX4AirframeConfig.cc @@ -0,0 +1,14 @@ +#include "QGCPX4AirframeConfig.h" +#include "ui_QGCPX4AirframeConfig.h" + +QGCPX4AirframeConfig::QGCPX4AirframeConfig(QWidget *parent) : + QWidget(parent), + ui(new Ui::QGCPX4AirframeConfig) +{ + ui->setupUi(this); +} + +QGCPX4AirframeConfig::~QGCPX4AirframeConfig() +{ + delete ui; +} diff --git a/src/ui/px4_configuration/QGCPX4AirframeConfig.h b/src/ui/px4_configuration/QGCPX4AirframeConfig.h new file mode 100644 index 000000000..5cad0cb9d --- /dev/null +++ b/src/ui/px4_configuration/QGCPX4AirframeConfig.h @@ -0,0 +1,22 @@ +#ifndef QGCPX4AIRFRAMECONFIG_H +#define QGCPX4AIRFRAMECONFIG_H + +#include + +namespace Ui { +class QGCPX4AirframeConfig; +} + +class QGCPX4AirframeConfig : public QWidget +{ + Q_OBJECT + +public: + explicit QGCPX4AirframeConfig(QWidget *parent = 0); + ~QGCPX4AirframeConfig(); + +private: + Ui::QGCPX4AirframeConfig *ui; +}; + +#endif // QGCPX4AIRFRAMECONFIG_H diff --git a/src/ui/px4_configuration/QGCPX4AirframeConfig.ui b/src/ui/px4_configuration/QGCPX4AirframeConfig.ui new file mode 100644 index 000000000..f5aa09aa9 --- /dev/null +++ b/src/ui/px4_configuration/QGCPX4AirframeConfig.ui @@ -0,0 +1,318 @@ + + + QGCPX4AirframeConfig + + + + 0 + 0 + 602 + 345 + + + + Form + + + + + + true + + + + + 0 + 0 + 561 + 299 + + + + + + + + + + + + + 120 + 120 + + + + + + + + + Please select + + + + + EasyStar + + + + + EasyStar 2 + + + + + EasyStar 2 w. Ailerons + + + + + Bixler 2 + + + + + + + + Standard Plane + + + + + + + + + + + + + + + + + + + Bormatec CamFlyer Q + + + + + FX-61 Phantom + + + + + + + + Flying Wing + + + + + + + + + + + + + + + + + + + AR.Drone Frame + + + + + Arducopter C Frame + + + + + DJI F330 Frame + + + + + DJI F450 Frame + + + + + + + + Quadrotor X + + + + + + + + + + + PushButton + + + + + + + + + + Quadrotor + + + + + + + + + + + + PushButton + + + + + + + + + + Hexarotor X + + + + + + + + + + + PushButton + + + + + + + + + + Hexarotor + + + + + + + + + + + + PushButton + + + + + + + + + + Octorotor X + + + + + + + + + + + PushButton + + + + + + + + + + Octorotor + + + + + + + + + + + + PushButton + + + + + + + + Steadydrone + + + + + H Frame Custom + + + + + + + + H Frame + + + + + + + + + + + + + No changes values + + + + + + + Apply and Restart + + + + + + + + -- 2.22.0