2011-03-29 22:32:09 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
2013-02-26 07:37:14 +01:00
|
|
|
* @file configrevohwwidget.cpp
|
2011-08-20 20:10:28 +02:00
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
2011-03-29 22:32:09 +02:00
|
|
|
* @addtogroup GCSPlugins GCS Plugins
|
|
|
|
* @{
|
|
|
|
* @addtogroup ConfigPlugin Config Plugin
|
|
|
|
* @{
|
2013-02-26 07:37:14 +01:00
|
|
|
* @brief Revolution hardware configuration panel
|
2011-03-29 22:32:09 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*/
|
2013-02-26 07:37:14 +01:00
|
|
|
#include "configrevohwwidget.h"
|
2011-03-29 22:32:09 +02:00
|
|
|
|
|
|
|
#include <QDebug>
|
2013-02-28 08:13:21 +01:00
|
|
|
#include <extensionsystem/pluginmanager.h>
|
|
|
|
#include <coreplugin/generalsettings.h>
|
|
|
|
#include "hwsettings.h"
|
2013-03-03 14:17:37 +01:00
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QUrl>
|
2011-03-29 22:32:09 +02:00
|
|
|
|
|
|
|
|
2013-02-26 07:37:14 +01:00
|
|
|
ConfigRevoHWWidget::ConfigRevoHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
2011-03-29 22:32:09 +02:00
|
|
|
{
|
2013-02-26 07:37:14 +01:00
|
|
|
m_ui = new Ui_RevoHWWidget();
|
|
|
|
m_ui->setupUi(this);
|
2011-03-29 22:32:09 +02:00
|
|
|
|
2013-02-28 08:13:21 +01:00
|
|
|
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
|
|
|
Core::Internal::GeneralSettings *settings = pm->getObject<Core::Internal::GeneralSettings>();
|
|
|
|
if(!settings->useExpertMode()) {
|
|
|
|
m_ui->saveTelemetryToRAM->setEnabled(false);
|
|
|
|
m_ui->saveTelemetryToRAM->setVisible(false);
|
|
|
|
}
|
|
|
|
|
2013-02-26 07:37:14 +01:00
|
|
|
addApplySaveButtons(m_ui->saveTelemetryToRAM, m_ui->saveTelemetryToSD);
|
2013-03-03 14:17:37 +01:00
|
|
|
|
2013-02-28 08:13:21 +01:00
|
|
|
addUAVObjectToWidgetRelation("HwSettings","RM_FlexiPort",m_ui->cbFlexi);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","RM_MainPort",m_ui->cbMain);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","RM_RcvrPort",m_ui->cbRcvr);
|
|
|
|
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","USB_HIDPort",m_ui->cbUSBHIDFunction);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","USB_VCPPort",m_ui->cbUSBVCPFunction);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","ComUsbBridgeSpeed",m_ui->cbUSBVCPSpeed);
|
|
|
|
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","TelemetrySpeed",m_ui->cbFlexiTelemSpeed);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","GPSSpeed",m_ui->cbFlexiGPSSpeed);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","ComUsbBridgeSpeed",m_ui->cbFlexiComSpeed);
|
|
|
|
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","TelemetrySpeed",m_ui->cbMainTelemSpeed);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","GPSSpeed",m_ui->cbMainGPSSpeed);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings","ComUsbBridgeSpeed",m_ui->cbMainComSpeed);
|
|
|
|
|
2013-04-06 05:28:25 +02:00
|
|
|
addUAVObjectToWidgetRelation("HwSettings", "RadioPort", m_ui->cbModem);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings", "MaxRFPower", m_ui->cbTxPower);
|
|
|
|
addUAVObjectToWidgetRelation("HwSettings", "DefaultFrequency", m_ui->leInitFreq);
|
2013-03-03 14:17:37 +01:00
|
|
|
|
|
|
|
connect(m_ui->cchwHelp,SIGNAL(clicked()),this,SLOT(openHelp()));
|
|
|
|
|
2013-02-28 08:13:21 +01:00
|
|
|
setupCustomCombos();
|
|
|
|
enableControls(true);
|
2011-07-26 00:18:41 +02:00
|
|
|
populateWidgets();
|
2013-02-28 08:13:21 +01:00
|
|
|
refreshWidgetsValues();
|
|
|
|
forceConnectedState();
|
2011-03-29 22:32:09 +02:00
|
|
|
}
|
|
|
|
|
2013-02-26 07:37:14 +01:00
|
|
|
ConfigRevoHWWidget::~ConfigRevoHWWidget()
|
2011-03-29 22:32:09 +02:00
|
|
|
{
|
2013-02-28 08:13:21 +01:00
|
|
|
// Do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigRevoHWWidget::setupCustomCombos()
|
|
|
|
{
|
2013-03-10 18:51:15 +01:00
|
|
|
connect(m_ui->cbUSBHIDFunction, SIGNAL(currentIndexChanged(int)), this, SLOT(usbHIDPortChanged(int)));
|
|
|
|
connect(m_ui->cbUSBVCPFunction, SIGNAL(currentIndexChanged(int)), this, SLOT(usbVCPPortChanged(int)));
|
2013-02-28 08:13:21 +01:00
|
|
|
|
|
|
|
m_ui->cbSonar->addItem(tr("Disabled"));
|
|
|
|
m_ui->cbSonar->setCurrentIndex(0);
|
|
|
|
m_ui->cbSonar->setEnabled(false);
|
|
|
|
|
|
|
|
connect(m_ui->cbFlexi, SIGNAL(currentIndexChanged(int)), this, SLOT(flexiPortChanged(int)));
|
|
|
|
connect(m_ui->cbMain, SIGNAL(currentIndexChanged(int)), this, SLOT(mainPortChanged(int)));
|
2013-03-03 14:17:37 +01:00
|
|
|
connect(m_ui->cbModem, SIGNAL(currentIndexChanged(int)), this, SLOT(modemPortChanged(int)));
|
2013-02-28 08:13:21 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigRevoHWWidget::refreshWidgetsValues(UAVObject *obj)
|
|
|
|
{
|
|
|
|
ConfigTaskWidget::refreshWidgetsValues(obj);
|
2013-03-10 18:51:15 +01:00
|
|
|
usbVCPPortChanged(0);
|
2013-02-28 08:13:21 +01:00
|
|
|
mainPortChanged(0);
|
|
|
|
flexiPortChanged(0);
|
2011-03-29 22:32:09 +02:00
|
|
|
}
|
|
|
|
|
2013-03-03 14:17:37 +01:00
|
|
|
void ConfigRevoHWWidget::updateObjectsFromWidgets()
|
|
|
|
{
|
|
|
|
ConfigTaskWidget::updateObjectsFromWidgets();
|
|
|
|
|
|
|
|
HwSettings *hwSettings = HwSettings::GetInstance(getObjectManager());
|
|
|
|
HwSettings::DataFields data = hwSettings->getData();
|
|
|
|
|
|
|
|
// If any port is configured to be GPS port, enable GPS module if it is not enabled.
|
|
|
|
// Otherwise disable GPS module.
|
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_GPS || m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_GPS) {
|
2013-03-04 08:04:55 +01:00
|
|
|
data.OptionalModules[HwSettings::OPTIONALMODULES_GPS] = HwSettings::OPTIONALMODULES_ENABLED;
|
2013-03-03 14:17:37 +01:00
|
|
|
}
|
2013-03-04 08:04:55 +01:00
|
|
|
else {
|
2013-03-03 14:17:37 +01:00
|
|
|
data.OptionalModules[HwSettings::OPTIONALMODULES_GPS] = HwSettings::OPTIONALMODULES_DISABLED;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If any port is configured to be ComBridge port, enable UsbComBridge module if it is not enabled.
|
|
|
|
// Otherwise disable UsbComBridge module.
|
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_COMBRIDGE || m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_COMBRIDGE ||
|
|
|
|
m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_COMBRIDGE) {
|
2013-03-04 08:04:55 +01:00
|
|
|
data.OptionalModules[HwSettings::OPTIONALMODULES_COMUSBBRIDGE] = HwSettings::OPTIONALMODULES_ENABLED;
|
2013-03-03 14:17:37 +01:00
|
|
|
}
|
2013-03-04 08:04:55 +01:00
|
|
|
else {
|
2013-03-03 14:17:37 +01:00
|
|
|
data.OptionalModules[HwSettings::OPTIONALMODULES_COMUSBBRIDGE] = HwSettings::OPTIONALMODULES_DISABLED;
|
|
|
|
}
|
|
|
|
|
|
|
|
hwSettings->setData(data);
|
|
|
|
}
|
|
|
|
|
2013-03-10 18:51:15 +01:00
|
|
|
void ConfigRevoHWWidget::usbVCPPortChanged(int index)
|
2013-02-28 08:13:21 +01:00
|
|
|
{
|
|
|
|
Q_UNUSED(index);
|
|
|
|
|
2013-03-10 18:51:15 +01:00
|
|
|
bool vcpComBridgeEnabled = m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_COMBRIDGE;
|
2013-02-28 08:13:21 +01:00
|
|
|
|
2013-03-10 18:51:15 +01:00
|
|
|
m_ui->lblUSBVCPSpeed->setVisible(vcpComBridgeEnabled);
|
|
|
|
m_ui->cbUSBVCPSpeed->setVisible(vcpComBridgeEnabled);
|
2013-03-03 14:17:37 +01:00
|
|
|
|
2013-03-10 18:51:15 +01:00
|
|
|
if(!vcpComBridgeEnabled && m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_COMBRIDGE) {
|
2013-03-03 14:17:37 +01:00
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
|
|
|
m_ui->cbFlexi->model()->setData(m_ui->cbFlexi->model()->index(HwSettings::RM_FLEXIPORT_COMBRIDGE, 0),
|
2013-03-10 18:51:15 +01:00
|
|
|
!vcpComBridgeEnabled ? QVariant(0) : QVariant(1|32), Qt::UserRole - 1);
|
2013-03-03 14:17:37 +01:00
|
|
|
|
2013-03-10 18:51:15 +01:00
|
|
|
if(!vcpComBridgeEnabled && m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_COMBRIDGE) {
|
2013-03-03 14:17:37 +01:00
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
|
|
|
m_ui->cbMain->model()->setData(m_ui->cbMain->model()->index(HwSettings::RM_MAINPORT_COMBRIDGE, 0),
|
2013-03-10 18:51:15 +01:00
|
|
|
!vcpComBridgeEnabled ? QVariant(0) : QVariant(1|32), Qt::UserRole - 1);
|
|
|
|
|
|
|
|
//_DEBUGCONSOLE modes are mutual exclusive
|
|
|
|
if(m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_DEBUGCONSOLE) {
|
|
|
|
if(m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_DEBUGCONSOLE) {
|
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_DEBUGCONSOLE) {
|
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//_USBTELEMETRY modes are mutual exclusive
|
|
|
|
if(m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_USBTELEMETRY) {
|
|
|
|
if(m_ui->cbUSBHIDFunction->currentIndex() == HwSettings::USB_HIDPORT_USBTELEMETRY) {
|
|
|
|
m_ui->cbUSBHIDFunction->setCurrentIndex(HwSettings::USB_HIDPORT_DISABLED);
|
|
|
|
}
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
}
|
|
|
|
|
2013-03-10 18:51:15 +01:00
|
|
|
void ConfigRevoHWWidget::usbHIDPortChanged(int index)
|
|
|
|
{
|
|
|
|
Q_UNUSED(index);
|
|
|
|
|
|
|
|
//_USBTELEMETRY modes are mutual exclusive
|
|
|
|
if(m_ui->cbUSBHIDFunction->currentIndex() == HwSettings::USB_HIDPORT_USBTELEMETRY) {
|
|
|
|
if(m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_USBTELEMETRY) {
|
|
|
|
m_ui->cbUSBVCPFunction->setCurrentIndex(HwSettings::USB_VCPPORT_DISABLED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-03-03 14:17:37 +01:00
|
|
|
|
2013-02-28 08:13:21 +01:00
|
|
|
void ConfigRevoHWWidget::flexiPortChanged(int index)
|
|
|
|
{
|
|
|
|
Q_UNUSED(index);
|
|
|
|
|
|
|
|
m_ui->cbFlexiTelemSpeed->setVisible(false);
|
|
|
|
m_ui->cbFlexiGPSSpeed->setVisible(false);
|
|
|
|
m_ui->cbFlexiComSpeed->setVisible(false);
|
|
|
|
m_ui->lblFlexiSpeed->setVisible(true);
|
|
|
|
|
2013-03-03 14:17:37 +01:00
|
|
|
switch(m_ui->cbFlexi->currentIndex())
|
2013-02-28 08:13:21 +01:00
|
|
|
{
|
|
|
|
case HwSettings::RM_FLEXIPORT_TELEMETRY:
|
|
|
|
m_ui->cbFlexiTelemSpeed->setVisible(true);
|
2013-03-03 14:17:37 +01:00
|
|
|
if(m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_TELEMETRY) {
|
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
|
|
|
if(m_ui->cbModem->currentIndex() == HwSettings::RADIOPORT_TELEMETRY) {
|
|
|
|
m_ui->cbModem->setCurrentIndex(HwSettings::RADIOPORT_DISABLED);
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
break;
|
|
|
|
case HwSettings::RM_FLEXIPORT_GPS:
|
|
|
|
m_ui->cbFlexiGPSSpeed->setVisible(true);
|
2013-03-03 14:17:37 +01:00
|
|
|
if(m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_GPS) {
|
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
break;
|
|
|
|
case HwSettings::RM_FLEXIPORT_COMBRIDGE:
|
|
|
|
m_ui->cbFlexiComSpeed->setVisible(true);
|
2013-03-03 14:17:37 +01:00
|
|
|
if(m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_COMBRIDGE) {
|
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
break;
|
2013-03-10 18:51:15 +01:00
|
|
|
case HwSettings::RM_FLEXIPORT_DEBUGCONSOLE:
|
|
|
|
m_ui->cbFlexiComSpeed->setVisible(true);
|
|
|
|
if(m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_DEBUGCONSOLE) {
|
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
|
|
|
if(m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_DEBUGCONSOLE) {
|
|
|
|
m_ui->cbUSBVCPFunction->setCurrentIndex(HwSettings::USB_VCPPORT_DISABLED);
|
|
|
|
}
|
|
|
|
break;
|
2013-02-28 08:13:21 +01:00
|
|
|
default:
|
|
|
|
m_ui->lblFlexiSpeed->setVisible(false);
|
|
|
|
break;
|
2013-03-10 18:51:15 +01:00
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigRevoHWWidget::mainPortChanged(int index)
|
|
|
|
{
|
|
|
|
Q_UNUSED(index);
|
|
|
|
|
|
|
|
m_ui->cbMainTelemSpeed->setVisible(false);
|
|
|
|
m_ui->cbMainGPSSpeed->setVisible(false);
|
|
|
|
m_ui->cbMainComSpeed->setVisible(false);
|
|
|
|
m_ui->lblMainSpeed->setVisible(true);
|
|
|
|
|
2013-03-03 14:17:37 +01:00
|
|
|
switch(m_ui->cbMain->currentIndex())
|
2013-02-28 08:13:21 +01:00
|
|
|
{
|
2013-03-03 14:17:37 +01:00
|
|
|
case HwSettings::RM_MAINPORT_TELEMETRY:
|
2013-02-28 08:13:21 +01:00
|
|
|
m_ui->cbMainTelemSpeed->setVisible(true);
|
2013-03-03 14:17:37 +01:00
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_TELEMETRY) {
|
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
|
|
|
if(m_ui->cbModem->currentIndex() == HwSettings::RADIOPORT_TELEMETRY) {
|
|
|
|
m_ui->cbModem->setCurrentIndex(HwSettings::RADIOPORT_DISABLED);
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
break;
|
2013-03-03 14:17:37 +01:00
|
|
|
case HwSettings::RM_MAINPORT_GPS:
|
2013-02-28 08:13:21 +01:00
|
|
|
m_ui->cbMainGPSSpeed->setVisible(true);
|
2013-03-03 14:17:37 +01:00
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_GPS) {
|
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
break;
|
2013-03-03 14:17:37 +01:00
|
|
|
case HwSettings::RM_MAINPORT_COMBRIDGE:
|
2013-02-28 08:13:21 +01:00
|
|
|
m_ui->cbMainComSpeed->setVisible(true);
|
2013-03-03 14:17:37 +01:00
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_COMBRIDGE) {
|
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
2013-02-28 08:13:21 +01:00
|
|
|
break;
|
2013-03-10 18:51:15 +01:00
|
|
|
case HwSettings::RM_MAINPORT_DEBUGCONSOLE:
|
|
|
|
m_ui->cbMainComSpeed->setVisible(true);
|
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_DEBUGCONSOLE) {
|
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
|
|
|
if(m_ui->cbUSBVCPFunction->currentIndex() == HwSettings::USB_VCPPORT_DEBUGCONSOLE) {
|
|
|
|
m_ui->cbUSBVCPFunction->setCurrentIndex(HwSettings::USB_VCPPORT_DISABLED);
|
|
|
|
}
|
|
|
|
break;
|
2013-02-28 08:13:21 +01:00
|
|
|
default:
|
|
|
|
m_ui->lblMainSpeed->setVisible(false);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2011-03-29 22:32:09 +02:00
|
|
|
|
2013-03-03 14:17:37 +01:00
|
|
|
void ConfigRevoHWWidget::modemPortChanged(int index)
|
|
|
|
{
|
|
|
|
Q_UNUSED(index);
|
|
|
|
|
|
|
|
if(m_ui->cbModem->currentIndex()== HwSettings::RADIOPORT_TELEMETRY) {
|
|
|
|
if(m_ui->cbMain->currentIndex() == HwSettings::RM_MAINPORT_TELEMETRY) {
|
|
|
|
m_ui->cbMain->setCurrentIndex(HwSettings::RM_MAINPORT_DISABLED);
|
|
|
|
}
|
|
|
|
if(m_ui->cbFlexi->currentIndex() == HwSettings::RM_FLEXIPORT_TELEMETRY) {
|
|
|
|
m_ui->cbFlexi->setCurrentIndex(HwSettings::RM_FLEXIPORT_DISABLED);
|
|
|
|
}
|
2013-04-06 05:28:25 +02:00
|
|
|
m_ui->lblTxPower->setVisible(true);
|
|
|
|
m_ui->cbTxPower->setVisible(true);
|
|
|
|
m_ui->lblInitFreq->setVisible(true);
|
|
|
|
m_ui->leInitFreq->setVisible(true);
|
|
|
|
} else {
|
|
|
|
m_ui->lblTxPower->setVisible(false);
|
|
|
|
m_ui->cbTxPower->setVisible(false);
|
|
|
|
m_ui->lblInitFreq->setVisible(false);
|
|
|
|
m_ui->leInitFreq->setVisible(false);
|
2013-03-03 14:17:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigRevoHWWidget::openHelp()
|
2011-03-29 22:32:09 +02:00
|
|
|
{
|
2013-03-03 14:17:37 +01:00
|
|
|
QDesktopServices::openUrl( QUrl("http://wiki.openpilot.org/x/GgDBAQ", QUrl::StrictMode) );
|
2011-03-29 22:32:09 +02:00
|
|
|
}
|