Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f5d89a62
Commit
f5d89a62
authored
May 21, 2013
by
Michael Carpenter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to how configuration view operates, menu on the left side rather than top
parent
0049997b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1051 additions
and
894 deletions
+1051
-894
style-indoor.css
files/styles/style-indoor.css
+2
-2
style-outdoor.css
files/styles/style-outdoor.css
+2
-2
QGCVehicleConfig.cc
src/ui/QGCVehicleConfig.cc
+64
-4
QGCVehicleConfig.h
src/ui/QGCVehicleConfig.h
+8
-1
QGCVehicleConfig.ui
src/ui/QGCVehicleConfig.ui
+975
-885
No files found.
files/styles/style-indoor.css
View file @
f5d89a62
...
...
@@ -178,8 +178,8 @@ QDoubleSpinBox::down-button {
}
QPushButton
{
min-height
:
20px
;
max-height
:
20px
;
/*min-height: 20px;*/
/*max-height: 20px;*/
border
:
1px
solid
#465158
;
margin
:
1px
;
border-radius
:
2px
;
...
...
files/styles/style-outdoor.css
View file @
f5d89a62
...
...
@@ -184,8 +184,8 @@ QDoubleSpinBox::down-button {
QPushButton
{
font-weight
:
bold
;
min-height
:
18px
;
max-height
:
18px
;
/*min-height: 18px;*/
/*max-height: 18px;*/
border
:
2px
solid
#4A4A4F
;
border-radius
:
5px
;
padding-left
:
10px
;
...
...
src/ui/QGCVehicleConfig.cc
View file @
f5d89a62
...
...
@@ -44,6 +44,12 @@ QGCVehicleConfig::QGCVehicleConfig(QWidget *parent) :
setObjectName
(
"QGC_VEHICLECONFIG"
);
ui
->
setupUi
(
this
);
connect
(
ui
->
rcMenuButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
rcMenuButtonClicked
()));
connect
(
ui
->
sensorMenuButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
sensorMenuButtonClicked
()));
connect
(
ui
->
generalMenuButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
generalMenuButtonClicked
()));
connect
(
ui
->
advancedMenuButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
advancedMenuButtonClicked
()));
requestCalibrationRC
();
if
(
mav
)
mav
->
requestParameter
(
0
,
"RC_TYPE"
);
...
...
@@ -89,6 +95,25 @@ QGCVehicleConfig::QGCVehicleConfig(QWidget *parent) :
connect
(
&
updateTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
updateView
()));
updateTimer
.
start
();
}
void
QGCVehicleConfig
::
rcMenuButtonClicked
()
{
ui
->
stackedWidget
->
setCurrentIndex
(
0
);
}
void
QGCVehicleConfig
::
sensorMenuButtonClicked
()
{
ui
->
stackedWidget
->
setCurrentIndex
(
1
);
}
void
QGCVehicleConfig
::
generalMenuButtonClicked
()
{
ui
->
stackedWidget
->
setCurrentIndex
(
ui
->
stackedWidget
->
count
()
-
2
);
}
void
QGCVehicleConfig
::
advancedMenuButtonClicked
()
{
ui
->
stackedWidget
->
setCurrentIndex
(
ui
->
stackedWidget
->
count
()
-
1
);
}
QGCVehicleConfig
::~
QGCVehicleConfig
()
{
...
...
@@ -247,8 +272,18 @@ void QGCVehicleConfig::loadQgcConfig(bool primary)
//Load tabs for general configuration
foreach
(
QString
dir
,
generaldir
.
entryList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
QWidget
*
tab
=
new
QWidget
(
ui
->
tabWidget
);
ui
->
tabWidget
->
insertTab
(
2
,
tab
,
dir
);
QPushButton
*
button
=
new
QPushButton
(
ui
->
scrollAreaWidgetContents_3
);
connect
(
button
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
menuButtonClicked
()));
ui
->
navBarLayout
->
insertWidget
(
2
,
button
);
button
->
setMinimumHeight
(
100
);
button
->
setMinimumWidth
(
100
);
button
->
show
();
button
->
setText
(
dir
);
//QWidget *tab = new QWidget(ui->tabWidget);
//ui->tabWidget->insertTab(2,tab,dir);
QWidget
*
tab
=
new
QWidget
(
ui
->
stackedWidget
);
ui
->
stackedWidget
->
insertWidget
(
2
,
tab
);
buttonToWidgetMap
[
button
]
=
tab
;
tab
->
setLayout
(
new
QVBoxLayout
());
tab
->
show
();
QScrollArea
*
area
=
new
QScrollArea
();
...
...
@@ -283,8 +318,20 @@ void QGCVehicleConfig::loadQgcConfig(bool primary)
//Load tabs for vehicle specific configuration
foreach
(
QString
dir
,
vehicledir
.
entryList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
QWidget
*
tab
=
new
QWidget
(
ui
->
tabWidget
);
ui
->
tabWidget
->
insertTab
(
2
,
tab
,
dir
);
//QWidget *tab = new QWidget(ui->tabWidget);
//ui->tabWidget->insertTab(2,tab,dir);
QPushButton
*
button
=
new
QPushButton
(
ui
->
scrollAreaWidgetContents_3
);
connect
(
button
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
menuButtonClicked
()));
ui
->
navBarLayout
->
insertWidget
(
2
,
button
);
QWidget
*
tab
=
new
QWidget
(
ui
->
stackedWidget
);
ui
->
stackedWidget
->
insertWidget
(
2
,
tab
);
buttonToWidgetMap
[
button
]
=
tab
;
button
->
setMinimumHeight
(
100
);
button
->
setMinimumWidth
(
100
);
button
->
show
();
button
->
setText
(
dir
);
tab
->
setLayout
(
new
QVBoxLayout
());
tab
->
show
();
QScrollArea
*
area
=
new
QScrollArea
();
...
...
@@ -361,6 +408,19 @@ void QGCVehicleConfig::loadQgcConfig(bool primary)
}
void
QGCVehicleConfig
::
menuButtonClicked
()
{
QPushButton
*
button
=
qobject_cast
<
QPushButton
*>
(
sender
());
if
(
!
button
)
{
return
;
}
if
(
buttonToWidgetMap
.
contains
(
button
))
{
ui
->
stackedWidget
->
setCurrentWidget
(
buttonToWidgetMap
[
button
]);
}
}
void
QGCVehicleConfig
::
loadConfig
()
...
...
src/ui/QGCVehicleConfig.h
View file @
f5d89a62
...
...
@@ -5,6 +5,7 @@
#include <QTimer>
#include <QList>
#include <QGroupBox>
#include <QPushButton>
#include "QGCToolWidget.h"
#include "UASInterface.h"
...
...
@@ -29,6 +30,11 @@ public:
};
public
slots
:
void
rcMenuButtonClicked
();
void
sensorMenuButtonClicked
();
void
generalMenuButtonClicked
();
void
advancedMenuButtonClicked
();
/** Set the MAV currently being calibrated */
void
setActiveUAS
(
UASInterface
*
active
);
/** Fallback function, automatically called by loadConfig() upon failure to find and xml file*/
...
...
@@ -125,6 +131,7 @@ public slots:
}
protected
slots
:
void
menuButtonClicked
();
/** Reset the RC calibration */
void
resetCalibrationRC
();
/** Write the RC calibration */
...
...
@@ -183,7 +190,7 @@ protected:
private:
Ui
::
QGCVehicleConfig
*
ui
;
QMap
<
QPushButton
*
,
QWidget
*>
buttonToWidgetMap
;
signals:
void
visibilityChanged
(
bool
visible
);
};
...
...
src/ui/QGCVehicleConfig.ui
View file @
f5d89a62
...
...
@@ -6,83 +6,149 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
760
</width>
<height>
541
</height>
<width>
1151
</width>
<height>
602
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<property
name=
"horizontalSpacing"
>
<number>
6
</number>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_11"
stretch=
"1,2,1"
>
<item>
<widget
class=
"QScrollArea"
name=
"scrollArea_6"
>
<property
name=
"minimumSize"
>
<size>
<width>
125
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"verticalSpacing"
>
<number>
8
</number>
<property
name=
"maximumSize"
>
<size>
<width>
125
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"margin"
>
<number>
6
</number>
<property
name=
"widgetResizable"
>
<bool>
true
</bool>
</property>
<widget
class=
"QWidget"
name=
"scrollAreaWidgetContents_3"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
123
</width>
<height>
582
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_12"
>
<item>
<layout
class=
"QVBoxLayout"
name=
"navBarLayout"
>
<property
name=
"sizeConstraint"
>
<enum>
QLayout::SetMinAndMaxSize
</enum>
</property>
<item>
<widget
class=
"QPushButton"
name=
"rcMenuButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"storeButton"
>
<property
name=
"text"
>
<string>
Store to EEPROM
</string>
<string>
RC
Calibration
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"statusLabel"
>
<item>
<widget
class=
"QPushButton"
name=
"sensorMenuButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<property
name=
"text"
>
<string>
No pending changes
</string>
<string>
Sensor
Calibration
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
colspan=
"2"
>
<widget
class=
"QTabWidget"
name=
"tabWidget"
>
<property
name=
"currentIndex"
>
<number>
2
</number>
<item>
<widget
class=
"QPushButton"
name=
"generalMenuButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<widget
class=
"QWidget"
name=
"rcTab"
>
<attribute
name=
"title"
>
<string>
RC Calibration
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"gridLayout_5"
columnstretch=
"1,1,10,1,1,10,1,1,1,1,1,1,1,1,10"
>
<property
name=
"topMargin"
>
<number>
20
</number>
<property
name=
"maximumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<item
row=
"8"
column=
"1"
rowspan=
"3"
>
<widget
class=
"QSlider"
name=
"throttleSlider"
>
<property
name=
"minimum"
>
<number>
0
</number>
<property
name=
"text"
>
<string>
General
Config
</string>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"advancedMenuButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<property
name=
"value"
>
<number>
0
</number>
<property
name=
"maximumSize"
>
<size>
<width>
100
</width>
<height>
100
</height>
</size>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
<property
name=
"text"
>
<string>
Advanced
Config
</string>
</property>
</widget>
</item>
<item
row=
"8"
column=
"4"
rowspan=
"3"
colspan=
"2"
>
<widget
class=
"QSlider"
name=
"pitchSlider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
<property
name=
"value"
>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QStackedWidget"
name=
"stackedWidget"
>
<property
name=
"currentIndex"
>
<number>
0
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
<widget
class=
"QWidget"
name=
"page"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_15"
>
<item>
<widget
class=
"QLabel"
name=
"label_4"
>
<property
name=
"text"
>
<string>
RC Calibration
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
rowspan=
"2"
colspan=
"9"
>
<item
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QComboBox"
name=
"rcTypeComboBox"
>
...
...
@@ -128,35 +194,40 @@
</item>
</layout>
</item>
<item
row=
"3"
column=
"0"
colspan=
"12"
>
<item
>
<spacer
name=
"verticalSpacer_2"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
598
</width>
<height>
5
</height>
<width>
20
</width>
<height>
40
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QLabel"
name=
"txLabel"
>
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QLabel"
name=
"chanLabel_3"
>
<property
name=
"text"
>
<string/>
<string>
0000
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item
row=
"2
"
column=
"7"
>
<widget
class=
"QLabel"
name=
"instructionLabel
"
>
<item
row=
"3
"
column=
"7"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_8
"
>
<property
name=
"text"
>
<string/
>
<string>
Invert
</string
>
</property>
</widget>
</item>
<item
row=
"2"
column=
"10"
colspan=
"2
"
>
<spacer
name=
"horizontalSpacer_7
"
>
<item
row=
"1"
column=
"4
"
>
<spacer
name=
"horizontalSpacer_2
"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
...
...
@@ -168,12 +239,57 @@
</property>
</spacer>
</item>
<item
row=
"5"
column=
"0"
colspan=
"13"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<item
row=
"3"
column=
"5"
>
<widget
class=
"QLabel"
name=
"chanName_8"
>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"chanName_3"
>
<property
name=
"text"
>
<string>
Aux 3
</string>
<string>
Yaw / Rudder
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"6"
>
<widget
class=
"QLabel"
name=
"chanLabel_5"
>
<property
name=
"text"
>
<string>
0000
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item
row=
"0"
column=
"4"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"0"
column=
"7"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_5"
>
<property
name=
"text"
>
<string>
Invert
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox"
>
<property
name=
"text"
>
<string>
Invert
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"8"
>
<widget
class=
"QSpinBox"
name=
"aux2SpinBox"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
8
</number>
</property>
</widget>
</item>
...
...
@@ -251,16 +367,6 @@
</property>
</widget>
</item>
<item
row=
"2"
column=
"8"
>
<widget
class=
"QSpinBox"
name=
"aux2SpinBox"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
8
</number>
</property>
</widget>
</item>
<item
row=
"3"
column=
"8"
>
<widget
class=
"QSpinBox"
name=
"aux3SpinBox"
>
<property
name=
"minimum"
>
...
...
@@ -382,27 +488,27 @@
</property>
</widget>
</item>
<item
row=
"0"
column=
"8"
>
<widget
class=
"QSpinBox"
name=
"modeSpinBox"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
8
</number>
<item
row=
"3"
column=
"5"
>
<widget
class=
"QLabel"
name=
"chanName_8"
>
<property
name=
"text"
>
<string>
Aux 3
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0
"
>
<widget
class=
"QLabel"
name=
"chanName
"
>
<item
row=
"1"
column=
"7
"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_6
"
>
<property
name=
"text"
>
<string>
Roll / Ailerons
</string>
<string>
Invert
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_2"
>
<property
name=
"text"
>
<string>
Invert
</string>
<item
row=
"0"
column=
"8"
>
<widget
class=
"QSpinBox"
name=
"modeSpinBox"
>
<property
name=
"minimum"
>
<number>
1
</number>
</property>
<property
name=
"maximum"
>
<number>
8
</number>
</property>
</widget>
</item>
...
...
@@ -413,142 +519,85 @@
</property>
</widget>
</item>
<item
row=
"1"
column=
"7
"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_6
"
>
<item
row=
"1"
column=
"2
"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_2
"
>
<property
name=
"text"
>
<string>
Invert
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"1
"
>
<widget
class=
"QLabel"
name=
"chanLabel_3
"
>
<item
row=
"0"
column=
"0
"
>
<widget
class=
"QLabel"
name=
"chanName
"
>
<property
name=
"text"
>
<string>
0000
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
<string>
Roll / Ailerons
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"7"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_8"
>
<property
name=
"text"
>
<string>
Invert
</string>
</property>
</widget>
</layout>
</item>
<item
row=
"1"
column=
"4"
>
<spacer
name=
"horizontalSpacer_2"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_14"
>
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"rightStickLabel"
>
<property
name=
"maximumSize"
>
<size>
<width>
4
0
</width>
<height>
2
0
</height>
<width>
20
0
</width>
<height>
20
0
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"chanName_3"
>
<property
name=
"text"
>
<string>
Yaw / Rudder
</string
>
<string/
>
</property>
</widget>
</item>
<item
row=
"0"
column=
"6"
>
<widget
class=
"QLabel"
name=
"chanLabel_5"
>
<property
name=
"text"
>
<string>
0000
</string>
<property
name=
"pixmap"
>
<pixmap
resource=
"../../qgroundcontrol.qrc"
>
:/files/images/rc_stick.svg
</pixmap>
</property>
<property
name=
"scaledContents"
>
<bool>
true
</bool>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item
row=
"0"
column=
"4"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QSlider"
name=
"rollSlider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
</spacer>
</item>
<item
row=
"0"
column=
"7"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox_5"
>
<property
name=
"text"
>
<string>
Invert
</string>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QCheckBox"
name=
"invertCheckBox"
>
<property
name=
"text"
>
<string>
Invert
</string>
<property
name=
"value"
>
<number>
0
</number>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"5"
column=
"13"
colspan=
"2"
>
<spacer
name=
"horizontalSpacer_12"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
22
</width>
<height>
122
</height>
</size>
</property>
</spacer>
</widget>
</item>
<item
row=
"6"
column=
"0"
colspan=
"15"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
598
</width>
<height>
17
</height>
</size>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QSlider"
name=
"pitchSlider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
</spacer>
</item>
<item
row=
"8"
column=
"3"
rowspan=
"3"
>
<widget
class=
"QLabel"
name=
"rightStickLabel"
>
<property
name=
"text"
>
<string/>
<property
name=
"maximum"
>
<number>
100
</number>
</property>
<property
name=
"pixmap
"
>
<pixmap
resource=
"../../qgroundcontrol.qrc"
>
:/files/images/rc_stick.svg
</pixmap
>
<property
name=
"value
"
>
<number>
0
</number
>
</property>
<property
name=
"scaledContents
"
>
<bool>
true
</bool
>
<property
name=
"orientation
"
>
<enum>
Qt::Vertical
</enum
>
</property>
</widget>
</item>
<item
row=
"8"
column=
"2"
rowspan=
"3"
>
<spacer
name=
"horizontalSpacer_14"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</layout>
</item>
<item
row=
"8"
column=
"0"
rowspan=
"3"
>
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"leftStickLabel"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Preferred"
>
...
...
@@ -556,6 +605,12 @@
<verstretch>
1
</verstretch>
</sizepolicy>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
200
</width>
<height>
200
</height>
</size>
</property>
<property
name=
"sizeIncrement"
>
<size>
<width>
10
</width>
...
...
@@ -577,22 +632,12 @@
<property
name=
"scaledContents"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"8"
column=
"14"
>
<spacer
name=
"horizontalSpacer_6"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</spacer
>
</widget
>
</item>
<item
row=
"1
1"
column=
"0"
>
<item
row=
"
1"
column=
"0"
>
<widget
class=
"QSlider"
name=
"yawSlider"
>
<property
name=
"minimum"
>
<number>
0
</number>
...
...
@@ -608,8 +653,8 @@
</property>
</widget>
</item>
<item
row=
"11"
column=
"3
"
>
<widget
class=
"QSlider"
name=
"roll
Slider"
>
<item
row=
"0"
column=
"1
"
>
<widget
class=
"QSlider"
name=
"throttle
Slider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
...
...
@@ -620,35 +665,18 @@
<number>
0
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"11"
column=
"6"
colspan=
"8"
>
<widget
class=
"QPushButton"
name=
"rcCalibrationButton"
>
<property
name=
"text"
>
<string>
Start Calibration
</string>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<spacer
name=
"verticalSpacer_3"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeType"
>
<enum>
QSizePolicy::MinimumExpanding
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
10
</height>
</size>
</property>
</spacer>
</layout>
</item>
<item
row=
"8"
column=
"10"
rowspan=
"3"
>
<widget
class=
"QSlider"
name=
"aux1Slider"
>
<item>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_6"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_10"
>
<item>
<widget
class=
"QSlider"
name=
"modeSwitchSlider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
...
...
@@ -660,8 +688,8 @@
</property>
</widget>
</item>
<item
row=
"8"
column=
"11"
rowspan=
"3"
>
<widget
class=
"QSlider"
name=
"aux2
Slider"
>
<item
>
<widget
class=
"QSlider"
name=
"aux1
Slider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
...
...
@@ -673,8 +701,8 @@
</property>
</widget>
</item>
<item
row=
"8"
column=
"12"
rowspan=
"3"
colspan=
"2"
>
<widget
class=
"QSlider"
name=
"aux3
Slider"
>
<item
>
<widget
class=
"QSlider"
name=
"aux2
Slider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
...
...
@@ -686,8 +714,8 @@
</property>
</widget>
</item>
<item
row=
"8"
column=
"9"
rowspan=
"3"
>
<widget
class=
"QSlider"
name=
"modeSwitch
Slider"
>
<item
>
<widget
class=
"QSlider"
name=
"aux3
Slider"
>
<property
name=
"minimum"
>
<number>
0
</number>
</property>
...
...
@@ -699,33 +727,54 @@
</property>
</widget>
</item>
<item
row=
"7"
column=
"5"
rowspan=
"2"
colspan=
"4"
>
<spacer
name=
"horizontalSpacer_5"
>
</layout>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_13"
>
<item>
<widget
class=
"QPushButton"
name=
"rcCalibrationButton"
>
<property
name=
"text"
>
<string>
Start Calibration
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"setTrimButton"
>
<property
name=
"text"
>
<string>
Set Trim
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizont
al
</enum>
<enum>
Qt::Vertic
al
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
4
0
</width>
<height>
2
0
</height>
<width>
2
0
</width>
<height>
4
0
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"11"
column=
"14"
>
<widget
class=
"QPushButton"
name=
"setTrimButton"
>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"page_2"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_14"
>
<item>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"text"
>
<string>
Set Trim
</string>
<string>
Sensor Calibration
</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"sensorTab"
>
<attribute
name=
"title"
>
<string>
Sensor Calibration
</string>
</attribute>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_9"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_8"
>
<item>
...
...
@@ -751,8 +800,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
35
4
</width>
<height>
44
8
</height>
<width>
31
4
</width>
<height>
50
8
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_10"
>
...
...
@@ -769,11 +818,15 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"multirotorTab"
>
<attribute
name=
"title"
>
<widget
class=
"QWidget"
name=
"page_3"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_11"
>
<item>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
General Config
</string>
</attribute>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_6"
>
</property>
</widget>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_7"
>
<item>
...
...
@@ -822,8 +875,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
35
4
</width>
<height>
40
4
</height>
<width>
31
4
</width>
<height>
43
4
</height>
</rect>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_4"
>
...
...
@@ -859,8 +912,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
354
</width>
<height>
40
4
</height>
<width>
313
</width>
<height>
43
4
</height>
</rect>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_5"
>
...
...
@@ -881,11 +934,15 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"fixedWingTab"
>
<attribute
name=
"title"
>
<widget
class=
"QWidget"
name=
"page_4"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_13"
>
<item>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
Advanced Config
</string>
</attribute>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
</property>
</widget>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
...
...
@@ -934,8 +991,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
354
</width>
<height>
404
</height>
<width>
161
</width>
<height>
446
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_7"
>
...
...
@@ -971,8 +1028,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
354
</width>
<height>
404
</height>
<width>
160
</width>
<height>
446
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_8"
>
...
...
@@ -995,6 +1052,39 @@ p, li { white-space: pre-wrap; }
</widget>
</widget>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_9"
>
<item>
<widget
class=
"QLabel"
name=
"statusLabel"
>
<property
name=
"text"
>
<string>
No pending changes
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"storeButton"
>
<property
name=
"text"
>
<string>
Store to EEPROM
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer
name=
"horizontalSpacer_5"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment