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
6cb8eb14
Commit
6cb8eb14
authored
Oct 22, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve layout of sensor calibration
parent
a9a049ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
79 deletions
+124
-79
QGCPX4SensorCalibration.cc
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
+4
-0
QGCPX4SensorCalibration.ui
src/ui/px4_configuration/QGCPX4SensorCalibration.ui
+120
-79
No files found.
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
View file @
6cb8eb14
...
...
@@ -19,6 +19,10 @@ QGCPX4SensorCalibration::QGCPX4SensorCalibration(QWidget *parent) :
connect
(
ui
->
accelButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
accelButtonClicked
()));
connect
(
ui
->
diffPressureButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
diffPressureButtonClicked
()));
connect
(
ui
->
logCheckBox
,
SIGNAL
(
clicked
(
bool
)),
ui
->
textView
,
SLOT
(
setVisible
(
bool
)));
ui
->
logCheckBox
->
setChecked
(
false
);
ui
->
textView
->
setVisible
(
false
);
ui
->
gyroButton
->
setEnabled
(
false
);
ui
->
magButton
->
setEnabled
(
false
);
ui
->
accelButton
->
setEnabled
(
false
);
...
...
src/ui/px4_configuration/QGCPX4SensorCalibration.ui
View file @
6cb8eb14
...
...
@@ -7,7 +7,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
659
</width>
<height>
6
03
</height>
<height>
6
36
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
...
...
@@ -36,24 +36,75 @@ QPushButton#gyroButton, QPushButton#accelButton, QPushButton#diffPressureButton
border: 2px solid #465158;
}
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"20,0,0,0,0,0,0"
columnstretch=
"30,0,0,0"
>
<item
row=
"3"
column=
"0"
colspan=
"2"
>
<widget
class=
"QPlainTextEdit"
name=
"textView"
/>
</item>
<item
row=
"6"
column=
"2"
>
<spacer
name=
"horizontalSpacer"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"40,5,1,1,1,1,1,1"
columnstretch=
"1,2,30,1,1,10"
>
<item
row=
"0"
column=
"4"
rowspan=
"6"
colspan=
"2"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_4"
stretch=
"0,10,10"
>
<item>
<spacer
name=
"verticalSpacer_2"
>
<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=
"5"
column=
"0"
colspan=
"4"
>
<item>
<widget
class=
"QGroupBox"
name=
"groupBox_2"
>
<property
name=
"title"
>
<string>
Autopilot Orientation
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"autopilotLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
250
</height>
</size>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item>
<widget
class=
"QComboBox"
name=
"autopilotComboBox"
/>
</item>
</layout>
</widget>
</item>
<item>
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property
name=
"title"
>
<string>
Magnetometer Orientation
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QLabel"
name=
"gpsLabel"
>
<property
name=
"minimumSize"
>
<size>
<width>
150
</width>
<height>
120
</height>
</size>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item>
<widget
class=
"QComboBox"
name=
"magComboBox"
/>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item
row=
"6"
column=
"2"
colspan=
"4"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -66,8 +117,29 @@ QPushButton#gyroButton, QPushButton#accelButton, QPushButton#diffPressureButton
</property>
</spacer>
</item>
<item
row=
"6"
column=
"0"
colspan=
"2"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<item
row=
"0"
column=
"0"
rowspan=
"2"
colspan=
"4"
>
<widget
class=
"QLabel"
name=
"iconLabel"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"2"
column=
"2"
colspan=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar"
>
<property
name=
"value"
>
<number>
24
</number>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
colspan=
"4"
>
<widget
class=
"QPlainTextEdit"
name=
"textView"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
</widget>
</item>
<item
row=
"7"
column=
"0"
colspan=
"4"
>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
columnstretch=
"1,1,1,1"
>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QLabel"
name=
"accelLabel"
>
<property
name=
"text"
>
...
...
@@ -154,76 +226,45 @@ QPushButton#gyroButton, QPushButton#accelButton, QPushButton#diffPressureButton
</item>
</layout>
</item>
<item
row=
"
2"
column=
"0"
colspan=
"2
"
>
<widget
class=
"Q
ProgressBar"
name=
"progressBar
"
>
<property
name=
"
value
"
>
<
number>
24
</number
>
<item
row=
"
5"
column=
"0"
colspan=
"4
"
>
<widget
class=
"Q
Label"
name=
"instructionLabel
"
>
<property
name=
"
text
"
>
<
string/
>
</property>
</widget>
</item>
<item
row=
"
0"
column=
"2"
colspan=
"2
"
>
<
widget
class=
"QGroupBox"
name=
"groupBox_2
"
>
<property
name=
"
title
"
>
<
string>
Autopilot Orientation
</string
>
<item
row=
"
7"
column=
"4
"
>
<
spacer
name=
"horizontalSpacer
"
>
<property
name=
"
orientation
"
>
<
enum>
Qt::Horizontal
</enum
>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"autopilotLabel"
>
<property
name=
"minimumSize"
>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
0
</width>
<height>
25
0
</height>
<width>
4
0
</width>
<height>
2
0
</height>
</size>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item>
<widget
class=
"QComboBox"
name=
"autopilotComboBox"
/>
</item>
</layout>
</widget>
</item>
<item
row=
"0"
column=
"0"
rowspan=
"2"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"iconLabel"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</spacer>
</item>
<item
row=
"
4"
column=
"0"
colspan=
"2
"
>
<widget
class=
"Q
Label"
name=
"instructionLabel
"
>
<item
row=
"
2"
column=
"0
"
>
<widget
class=
"Q
CheckBox"
name=
"logCheckBox
"
>
<property
name=
"text"
>
<string
/
>
<string
>
Log
</string
>
</property>
</widget>
</item>
<item
row=
"
1"
column=
"2"
rowspan=
"4"
colspan=
"2
"
>
<
widget
class=
"QGroupBox"
name=
"groupBox
"
>
<property
name=
"
title
"
>
<
string>
Magnetometer Orientation
</string
>
<item
row=
"
2"
column=
"1
"
>
<
spacer
name=
"horizontalSpacer_2
"
>
<property
name=
"
orientation
"
>
<
enum>
Qt::Horizontal
</enum
>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QLabel"
name=
"gpsLabel"
>
<property
name=
"minimumSize"
>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
15
0
</width>
<height>
1
20
</height>
<width>
4
0
</width>
<height>
20
</height>
</size>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item>
<widget
class=
"QComboBox"
name=
"magComboBox"
/>
</item>
</layout>
</widget>
</spacer>
</item>
</layout>
</widget>
...
...
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