mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
OP-856 Basic renaming from PRO to Revolution
This commit is contained in:
parent
ed83f282a5
commit
e710f3bb91
@ -17,7 +17,6 @@ HEADERS += configplugin.h \
|
|||||||
configinputwidget.h \
|
configinputwidget.h \
|
||||||
configoutputwidget.h \
|
configoutputwidget.h \
|
||||||
configvehicletypewidget.h \
|
configvehicletypewidget.h \
|
||||||
config_pro_hw_widget.h \
|
|
||||||
config_cc_hw_widget.h \
|
config_cc_hw_widget.h \
|
||||||
configccattitudewidget.h \
|
configccattitudewidget.h \
|
||||||
configpipxtremewidget.h \
|
configpipxtremewidget.h \
|
||||||
@ -39,7 +38,8 @@ HEADERS += configplugin.h \
|
|||||||
config_global.h \
|
config_global.h \
|
||||||
mixercurve.h \
|
mixercurve.h \
|
||||||
dblspindelegate.h \
|
dblspindelegate.h \
|
||||||
configautotunewidget.h
|
configautotunewidget.h \
|
||||||
|
configrevohwwidget.h
|
||||||
SOURCES += configplugin.cpp \
|
SOURCES += configplugin.cpp \
|
||||||
configgadgetconfiguration.cpp \
|
configgadgetconfiguration.cpp \
|
||||||
configgadgetwidget.cpp \
|
configgadgetwidget.cpp \
|
||||||
@ -50,7 +50,6 @@ SOURCES += configplugin.cpp \
|
|||||||
configinputwidget.cpp \
|
configinputwidget.cpp \
|
||||||
configoutputwidget.cpp \
|
configoutputwidget.cpp \
|
||||||
configvehicletypewidget.cpp \
|
configvehicletypewidget.cpp \
|
||||||
config_pro_hw_widget.cpp \
|
|
||||||
config_cc_hw_widget.cpp \
|
config_cc_hw_widget.cpp \
|
||||||
configccattitudewidget.cpp \
|
configccattitudewidget.cpp \
|
||||||
configstabilizationwidget.cpp \
|
configstabilizationwidget.cpp \
|
||||||
@ -73,10 +72,10 @@ SOURCES += configplugin.cpp \
|
|||||||
cfg_vehicletypes/vehicleconfig.cpp \
|
cfg_vehicletypes/vehicleconfig.cpp \
|
||||||
mixercurve.cpp \
|
mixercurve.cpp \
|
||||||
dblspindelegate.cpp \
|
dblspindelegate.cpp \
|
||||||
configautotunewidget.cpp
|
configautotunewidget.cpp \
|
||||||
|
configrevohwwidget.cpp
|
||||||
FORMS += airframe.ui \
|
FORMS += airframe.ui \
|
||||||
cc_hw_settings.ui \
|
cc_hw_settings.ui \
|
||||||
pro_hw_settings.ui \
|
|
||||||
ccpm.ui \
|
ccpm.ui \
|
||||||
stabilization.ui \
|
stabilization.ui \
|
||||||
input.ui \
|
input.ui \
|
||||||
@ -91,7 +90,8 @@ FORMS += airframe.ui \
|
|||||||
txpid.ui \
|
txpid.ui \
|
||||||
pipxtreme.ui \
|
pipxtreme.ui \
|
||||||
mixercurve.ui \
|
mixercurve.ui \
|
||||||
autotune.ui
|
autotune.ui \
|
||||||
|
configrevohwwidget.ui
|
||||||
RESOURCES += configgadget.qrc
|
RESOURCES += configgadget.qrc
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "configautotunewidget.h"
|
#include "configautotunewidget.h"
|
||||||
#include "configcamerastabilizationwidget.h"
|
#include "configcamerastabilizationwidget.h"
|
||||||
#include "configtxpidwidget.h"
|
#include "configtxpidwidget.h"
|
||||||
#include "config_pro_hw_widget.h"
|
#include "configrevohwwidget.h"
|
||||||
#include "config_cc_hw_widget.h"
|
#include "config_cc_hw_widget.h"
|
||||||
#include "configpipxtremewidget.h"
|
#include "configpipxtremewidget.h"
|
||||||
#include "configrevowidget.h"
|
#include "configrevowidget.h"
|
||||||
@ -136,7 +136,7 @@ ConfigGadgetWidget::ConfigGadgetWidget(QWidget *parent) : QWidget(parent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
help = 0;
|
help = 0;
|
||||||
connect(ftw,SIGNAL(currentAboutToShow(int,bool*)),this,SLOT(tabAboutToChange(int,bool*)));//,Qt::BlockingQueuedConnection);
|
connect(ftw,SIGNAL(currentAboutToShow(int,bool*)), this, SLOT(tabAboutToChange(int,bool*)));
|
||||||
|
|
||||||
// Connect to the PipXStatus object updates
|
// Connect to the PipXStatus object updates
|
||||||
UAVObjectManager *objManager = pm->getObject<UAVObjectManager>();
|
UAVObjectManager *objManager = pm->getObject<UAVObjectManager>();
|
||||||
@ -173,20 +173,21 @@ void ConfigGadgetWidget::resizeEvent(QResizeEvent *event)
|
|||||||
|
|
||||||
void ConfigGadgetWidget::onAutopilotDisconnect() {
|
void ConfigGadgetWidget::onAutopilotDisconnect() {
|
||||||
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
||||||
ftw->removeTab(ConfigGadgetWidget::sensors);
|
|
||||||
|
|
||||||
QIcon *icon = new QIcon();
|
QIcon *icon = new QIcon();
|
||||||
icon->addFile(":/configgadget/images/ins_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
icon->addFile(":/configgadget/images/ins_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
||||||
icon->addFile(":/configgadget/images/ins_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
icon->addFile(":/configgadget/images/ins_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
||||||
QWidget *qwd = new DefaultAttitudeWidget(this);
|
QWidget *qwd = new DefaultAttitudeWidget(this);
|
||||||
|
ftw->removeTab(ConfigGadgetWidget::sensors);
|
||||||
ftw->insertTab(ConfigGadgetWidget::sensors, qwd, *icon, QString("INS"));
|
ftw->insertTab(ConfigGadgetWidget::sensors, qwd, *icon, QString("INS"));
|
||||||
ftw->removeTab(ConfigGadgetWidget::hardware);
|
|
||||||
|
|
||||||
icon = new QIcon();
|
icon = new QIcon();
|
||||||
icon->addFile(":/configgadget/images/hardware_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
icon->addFile(":/configgadget/images/hardware_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
||||||
icon->addFile(":/configgadget/images/hardware_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
icon->addFile(":/configgadget/images/hardware_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
||||||
qwd = new DefaultHwSettingsWidget(this);
|
qwd = new DefaultHwSettingsWidget(this);
|
||||||
|
ftw->removeTab(ConfigGadgetWidget::hardware);
|
||||||
ftw->insertTab(ConfigGadgetWidget::hardware, qwd, *icon, QString("Hardware"));
|
ftw->insertTab(ConfigGadgetWidget::hardware, qwd, *icon, QString("Hardware"));
|
||||||
|
|
||||||
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
||||||
|
|
||||||
emit autopilotDisconnected();
|
emit autopilotDisconnected();
|
||||||
@ -203,40 +204,39 @@ void ConfigGadgetWidget::onAutopilotConnect() {
|
|||||||
int board = utilMngr->getBoardModel();
|
int board = utilMngr->getBoardModel();
|
||||||
if ((board & 0xff00) == 1024) {
|
if ((board & 0xff00) == 1024) {
|
||||||
// CopterControl family
|
// CopterControl family
|
||||||
// Delete the INS panel, replace with CC Panel:
|
|
||||||
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
|
||||||
ftw->removeTab(ConfigGadgetWidget::sensors);
|
|
||||||
|
|
||||||
QIcon *icon = new QIcon();
|
QIcon *icon = new QIcon();
|
||||||
icon->addFile(":/configgadget/images/ins_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
icon->addFile(":/configgadget/images/ins_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
||||||
icon->addFile(":/configgadget/images/ins_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
icon->addFile(":/configgadget/images/ins_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
||||||
QWidget *qwd = new ConfigCCAttitudeWidget(this);
|
QWidget *qwd = new ConfigCCAttitudeWidget(this);
|
||||||
ftw->insertTab(ConfigGadgetWidget::sensors, qwd, *icon, QString("INS"));
|
ftw->removeTab(ConfigGadgetWidget::sensors);
|
||||||
ftw->removeTab(ConfigGadgetWidget::hardware);
|
ftw->insertTab(ConfigGadgetWidget::sensors, qwd, *icon, QString("CopterControl"));
|
||||||
|
|
||||||
icon = new QIcon();
|
icon = new QIcon();
|
||||||
icon->addFile(":/configgadget/images/hardware_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
icon->addFile(":/configgadget/images/hardware_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
||||||
icon->addFile(":/configgadget/images/hardware_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
icon->addFile(":/configgadget/images/hardware_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
||||||
qwd = new ConfigCCHWWidget(this);
|
qwd = new ConfigCCHWWidget(this);
|
||||||
|
ftw->removeTab(ConfigGadgetWidget::hardware);
|
||||||
ftw->insertTab(ConfigGadgetWidget::hardware, qwd, *icon, QString("Hardware"));
|
ftw->insertTab(ConfigGadgetWidget::hardware, qwd, *icon, QString("Hardware"));
|
||||||
|
|
||||||
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
||||||
} else if ((board & 0xff00) == 0x0900) {
|
} else if ((board & 0xff00) == 0x0900) {
|
||||||
// Revolution sensor calibration
|
// Revolution family
|
||||||
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
|
||||||
ftw->removeTab(ConfigGadgetWidget::sensors);
|
|
||||||
|
|
||||||
QIcon *icon = new QIcon();
|
QIcon *icon = new QIcon();
|
||||||
icon->addFile(":/configgadget/images/ins_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
icon->addFile(":/configgadget/images/ins_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
||||||
icon->addFile(":/configgadget/images/ins_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
icon->addFile(":/configgadget/images/ins_selected.png", QSize(), QIcon::Selected, QIcon::Off);
|
||||||
QWidget *qwd = new ConfigRevoWidget(this);
|
QWidget *qwd = new ConfigRevoWidget(this);
|
||||||
ftw->insertTab(ConfigGadgetWidget::sensors, qwd, *icon, QString("Revo"));
|
ftw->removeTab(ConfigGadgetWidget::sensors);
|
||||||
ftw->removeTab(ConfigGadgetWidget::hardware);
|
ftw->insertTab(ConfigGadgetWidget::sensors, qwd, *icon, QString("Revolution"));
|
||||||
|
|
||||||
icon = new QIcon();
|
icon = new QIcon();
|
||||||
icon->addFile(":/configgadget/images/hardware_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
icon->addFile(":/configgadget/images/hardware_normal.png", QSize(), QIcon::Normal, QIcon::Off);
|
||||||
icon->addFile(":/configgadget/images/hardware_selected.png", QSize(), QIcon::Normal, QIcon::On);
|
icon->addFile(":/configgadget/images/hardware_selected.png", QSize(), QIcon::Normal, QIcon::On);
|
||||||
qwd = new ConfigProHWWidget(this);
|
qwd = new ConfigRevoHWWidget(this);
|
||||||
|
ftw->removeTab(ConfigGadgetWidget::hardware);
|
||||||
ftw->insertTab(ConfigGadgetWidget::hardware, qwd, *icon, QString("Hardware"));
|
ftw->insertTab(ConfigGadgetWidget::hardware, qwd, *icon, QString("Hardware"));
|
||||||
|
|
||||||
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
ftw->setCurrentIndex(ConfigGadgetWidget::hardware);
|
||||||
} else {
|
} else {
|
||||||
//Unknown board
|
//Unknown board
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*
|
*
|
||||||
* @file configtelemetrywidget.h
|
* @file configrevohwwidget.cpp
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||||
* @addtogroup GCSPlugins GCS Plugins
|
* @addtogroup GCSPlugins GCS Plugins
|
||||||
* @{
|
* @{
|
||||||
* @addtogroup ConfigPlugin Config Plugin
|
* @addtogroup ConfigPlugin Config Plugin
|
||||||
* @{
|
* @{
|
||||||
* @brief The Configuration Gadget used to update settings in the firmware
|
* @brief Revolution hardware configuration panel
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -24,7 +24,7 @@
|
|||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#include "config_pro_hw_widget.h"
|
#include "configrevohwwidget.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
@ -34,19 +34,19 @@
|
|||||||
#include <QtGui/QPushButton>
|
#include <QtGui/QPushButton>
|
||||||
|
|
||||||
|
|
||||||
ConfigProHWWidget::ConfigProHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
ConfigRevoHWWidget::ConfigRevoHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
||||||
{
|
{
|
||||||
m_telemetry = new Ui_PRO_HW_Widget();
|
m_ui = new Ui_RevoHWWidget();
|
||||||
m_telemetry->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
|
|
||||||
addApplySaveButtons(m_telemetry->saveTelemetryToRAM,m_telemetry->saveTelemetryToSD);
|
addApplySaveButtons(m_ui->saveTelemetryToRAM, m_ui->saveTelemetryToSD);
|
||||||
addUAVObjectToWidgetRelation("HwSettings","TelemetrySpeed",m_telemetry->telemetrySpeed);
|
addUAVObjectToWidgetRelation("HwSettings", "TelemetrySpeed", m_ui->telemetrySpeed);
|
||||||
enableControls(false);
|
enableControls(false);
|
||||||
populateWidgets();
|
populateWidgets();
|
||||||
refreshWidgetsValues(NULL);
|
refreshWidgetsValues(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigProHWWidget::~ConfigProHWWidget()
|
ConfigRevoHWWidget::~ConfigRevoHWWidget()
|
||||||
{
|
{
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
@ -55,6 +55,6 @@ ConfigProHWWidget::~ConfigProHWWidget()
|
|||||||
/**
|
/**
|
||||||
Request telemetry settings from the board
|
Request telemetry settings from the board
|
||||||
*/
|
*/
|
||||||
void ConfigProHWWidget::refreshValues()
|
void ConfigRevoHWWidget::refreshValues()
|
||||||
{
|
{
|
||||||
}
|
}
|
@ -1,13 +1,13 @@
|
|||||||
/**
|
/**
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*
|
*
|
||||||
* @file configtelemetrytwidget.h
|
* @file configrevohwwidget.h
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||||
* @addtogroup GCSPlugins GCS Plugins
|
* @addtogroup GCSPlugins GCS Plugins
|
||||||
* @{
|
* @{
|
||||||
* @addtogroup ConfigPlugin Config Plugin
|
* @addtogroup ConfigPlugin Config Plugin
|
||||||
* @{
|
* @{
|
||||||
* @brief Telemetry configuration panel
|
* @brief Revolution hardware configuration panel
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -24,10 +24,10 @@
|
|||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#ifndef CONFIGPROHWWIDGET_H
|
#ifndef CONFIGREVOHWWIDGET_H
|
||||||
#define CONFIGPROHWWIDGET_H
|
#define CONFIGREVOHWWIDGET_H
|
||||||
|
|
||||||
#include "ui_pro_hw_settings.h"
|
#include "ui_configrevohwwidget.h"
|
||||||
#include "../uavobjectwidgetutils/configtaskwidget.h"
|
#include "../uavobjectwidgetutils/configtaskwidget.h"
|
||||||
#include "extensionsystem/pluginmanager.h"
|
#include "extensionsystem/pluginmanager.h"
|
||||||
#include "uavobjectmanager.h"
|
#include "uavobjectmanager.h"
|
||||||
@ -36,20 +36,20 @@
|
|||||||
#include <QList>
|
#include <QList>
|
||||||
|
|
||||||
|
|
||||||
class ConfigProHWWidget: public ConfigTaskWidget
|
class ConfigRevoHWWidget: public ConfigTaskWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ConfigProHWWidget(QWidget *parent = 0);
|
ConfigRevoHWWidget(QWidget *parent = 0);
|
||||||
~ConfigProHWWidget();
|
~ConfigRevoHWWidget();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui_PRO_HW_Widget *m_telemetry;
|
Ui_RevoHWWidget *m_ui;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
virtual void refreshValues();
|
virtual void refreshValues();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIGPROHWWIDGET_H
|
#endif // CONFIGREVOHWWIDGET_H
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PRO_HW_Widget</class>
|
<class>RevoHWWidget</class>
|
||||||
<widget class="QWidget" name="PRO_HW_Widget">
|
<widget class="QWidget" name="RevoHWWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Lucida Grande'; font-size:13pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:10pt;">Set the serial speed of your onboard telemetry modem here. It is the speed between the OpenPilot board and the onboard modem, and could be different from the radio link speed.</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:10pt;">Set the serial speed of your onboard telemetry modem here. It is the speed between the OpenPilot board and the onboard modem, and could be different from the radio link speed.</span></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;"><br /></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans'; font-size:10pt;"><br /></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:10pt;">Beware of not locking yourself out! You should only modify this setting when the OpenPilot board is connected through the USB port.</span></p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:10pt;">Beware of not locking yourself out! You should only modify this setting when the OpenPilot board is connected through the USB port.</span></p></body></html></string>
|
Loading…
x
Reference in New Issue
Block a user