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