Commit 966cad30 authored by pixhawk's avatar pixhawk

Merge branch 'master' of git@pixhawk.ethz.ch:groundcontrol

parents 6a5e0f49 7d25a85a
......@@ -97,6 +97,7 @@ linux-g++ {
DESTDIR = $$BASEDIR
}
INCLUDEPATH += /usr/include \
/usr/include/qt4/phonon
# $$BASEDIR/lib/flite/include \
# $$BASEDIR/lib/flite/lang
......
......@@ -40,10 +40,12 @@ This file is part of the PIXHAWK project
#endif
#ifdef Q_OS_LINUX
//#include <flite/flite.h>
#include <phonon>
#include <Phonon/MediaObject>
#include <Phonon/AudioOutput>
#endif
#ifdef Q_OS_WIN
#include <Phonon>
#include <Phonon/MediaObject>
#include <Phonon/AudioOutput>
#endif
/* For Snow leopard and later
......
This diff is collapsed.
......@@ -86,6 +86,7 @@ protected:
CommStatus commStatus; ///< Communication status
QString name; ///< Human-friendly name of the vehicle, e.g. bravo
QList<LinkInterface*>* links; ///< List of links this UAS can be reached by
QList<int> unknownPackets; ///< Packet IDs which are unknown and have been received
MAVLinkProtocol* mavlink; ///< Reference to the MAVLink instance
BatteryType batteryType; ///< The battery type
int cells; ///< Number of cells
......@@ -95,7 +96,6 @@ protected:
QList<double> motorValues;
QList<QString> motorNames;
QList<int> unknownPackets; ///< Packet IDs which are unknown and have been received
double thrustSum; ///< Sum of forward/up thrust of all thrust actuators, in Newtons
double thrustMax; ///< Maximum forward/up thrust of this vehicle, in Newtons
......
......@@ -15,6 +15,9 @@ ParameterInterface::ParameterInterface(QWidget *parent) :
m_ui(new Ui::parameterWidget)
{
m_ui->setupUi(this);
// Make sure the combo box is empty
// because else indices get messed up
m_ui->vehicleComboBox->clear();
// Setup UI connections
connect(m_ui->vehicleComboBox, SIGNAL(activated(int)), this, SLOT(selectUAS(int)));
......@@ -54,7 +57,7 @@ void ParameterInterface::addUAS(UASInterface* uas)
// Set widgets as default
if (curr == -1)
{
m_ui->sensorSettings->setCurrentWidget(param);
m_ui->sensorSettings->setCurrentWidget(sensor);
m_ui->stackedWidget->setCurrentWidget(param);
curr = uas->getUASID();
}
......
......@@ -14,6 +14,9 @@
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
......
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