diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.cpp b/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.cpp new file mode 100644 index 000000000..80c119116 --- /dev/null +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.cpp @@ -0,0 +1,40 @@ +/** + ****************************************************************************** + * + * @file outputcalibrationpage.cpp + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012. + * @addtogroup + * @{ + * @addtogroup OutputCalibrationPage + * @{ + * @brief + *****************************************************************************/ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "outputcalibrationpage.h" +#include "ui_outputcalibrationpage.h" + +OutputCalibrationPage::OutputCalibrationPage(SetupWizard *wizard, QWidget *parent) : + AbstractWizardPage(wizard, parent), ui(new Ui::OutputCalibrationPage) +{ + ui->setupUi(this); +} + +OutputCalibrationPage::~OutputCalibrationPage() +{ + delete ui; +} diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.h b/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.h new file mode 100644 index 000000000..681c5f652 --- /dev/null +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.h @@ -0,0 +1,49 @@ +/** + ****************************************************************************** + * + * @file outputcalibrationpage.h + * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012. + * @addtogroup + * @{ + * @addtogroup OutputCalibrationPage + * @{ + * @brief + *****************************************************************************/ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef OUTPUTCALIBRATIONPAGE_H +#define OUTPUTCALIBRATIONPAGE_H + +#include "abstractwizardpage.h" + +namespace Ui { +class OutputCalibrationPage; +} + +class OutputCalibrationPage : public AbstractWizardPage +{ + Q_OBJECT + +public: + explicit OutputCalibrationPage(SetupWizard *wizard, QWidget *parent = 0); + ~OutputCalibrationPage(); + +private: + Ui::OutputCalibrationPage *ui; +}; + +#endif // OUTPUTCALIBRATIONPAGE_H diff --git a/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.ui b/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.ui new file mode 100644 index 000000000..a36237de2 --- /dev/null +++ b/ground/openpilotgcs/src/plugins/setupwizard/pages/outputcalibrationpage.ui @@ -0,0 +1,116 @@ + + + OutputCalibrationPage + + + + 0 + 0 + 600 + 400 + + + + WizardPage + + + + + 310 + 40 + 250 + 250 + + + + QFrame::NoFrame + + + + + + 110 + 341 + 380 + 20 + + + + Qt::Horizontal + + + QSlider::TicksBelow + + + 10 + + + + + + 40 + 340 + 50 + 22 + + + + Qt::LeftToRight + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + false + + + QAbstractSpinBox::UpDownArrows + + + + + + + + + 2500 + + + 1000 + + + + + + 510 + 340 + 50 + 22 + + + + Qt::LeftToRight + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + QAbstractSpinBox::UpDownArrows + + + + + + + + + 2500 + + + 2000 + + + + + + diff --git a/ground/openpilotgcs/src/plugins/setupwizard/setupwizard.pro b/ground/openpilotgcs/src/plugins/setupwizard/setupwizard.pro index 3301cf077..a02aa80b9 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/setupwizard.pro +++ b/ground/openpilotgcs/src/plugins/setupwizard/setupwizard.pro @@ -28,7 +28,8 @@ HEADERS += setupwizardplugin.h \ levellingutil.h \ vehicleconfigurationsource.h \ vehicleconfigurationhelper.h \ - connectiondiagram.h + connectiondiagram.h \ + pages/outputcalibrationpage.h SOURCES += setupwizardplugin.cpp \ setupwizard.cpp \ @@ -50,7 +51,8 @@ SOURCES += setupwizardplugin.cpp \ levellingutil.cpp \ vehicleconfigurationsource.cpp \ vehicleconfigurationhelper.cpp \ - connectiondiagram.cpp + connectiondiagram.cpp \ + pages/outputcalibrationpage.cpp OTHER_FILES += SetupWizard.pluginspec @@ -69,7 +71,8 @@ FORMS += \ pages/summarypage.ui \ pages/flashpage.ui \ pages/levellingpage.ui \ - connectiondiagram.ui + connectiondiagram.ui \ + pages/outputcalibrationpage.ui RESOURCES += \ wizardResources.qrc