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
ae9d9af4
Commit
ae9d9af4
authored
Aug 29, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'config' of github.com:mavlink/qgroundcontrol into config
parents
8dc537df
17fc6302
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
359 additions
and
38 deletions
+359
-38
style-dark.css
files/styles/style-dark.css
+24
-6
QGCPX4SensorCalibration.cc
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
+229
-3
QGCPX4SensorCalibration.h
src/ui/px4_configuration/QGCPX4SensorCalibration.h
+20
-0
QGCPX4SensorCalibration.ui
src/ui/px4_configuration/QGCPX4SensorCalibration.ui
+86
-29
No files found.
files/styles/style-dark.css
View file @
ae9d9af4
...
...
@@ -208,6 +208,27 @@ QGCToolBar .QWidget {
background-color
:
transparent
;
}
QGCPX4SensorCalibration
QLabel
#magLabel
{
font-size
:
15pt
;
font-weight
:
bold
;
border-radius
:
4px
;
min-height
:
25px
;
}
QGCPX4SensorCalibration
QLabel
#gyroLabel
{
font-size
:
15pt
;
font-weight
:
bold
;
border-radius
:
4px
;
min-height
:
25px
;
}
QGCPX4SensorCalibration
QLabel
#accelLabel
{
font-size
:
15pt
;
font-weight
:
bold
;
border-radius
:
4px
;
min-height
:
25px
;
}
QGCToolWidgetItem
{
border
:
1px
solid
#666
;
border-radius
:
3px
;
...
...
@@ -409,12 +430,9 @@ QPushButton#viewModeGeneric, QPushButton#viewModePX4, QPushButton#viewModeAPM, Q
}
QPushButton
#magButton
,
QPushButton
#gyroButton
,
QPushButton
#accelButton
{
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#73D95D
,
stop
:
1
#18A154
);
border-radius
:
8px
;
min-height
:
30px
;
max-height
:
50px
;
min-width
:
60px
;
border
:
3px
solid
#465158
;
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#757575
,
stop
:
1
#333
);
border-radius
:
5px
;
border
:
1px
solid
#000000
;
}
QWidget
#containerWidget
{
...
...
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
View file @
ae9d9af4
This diff is collapsed.
Click to expand it.
src/ui/px4_configuration/QGCPX4SensorCalibration.h
View file @
ae9d9af4
...
...
@@ -42,12 +42,28 @@ public slots:
*/
virtual
void
contextMenuEvent
(
QContextMenuEvent
*
event
);
void
setAutopilotOrientation
(
int
index
);
void
setGpsOrientation
(
int
index
);
void
parameterChanged
(
int
uas
,
int
component
,
QString
parameterName
,
QVariant
value
);
protected
slots
:
void
setInstructionImage
(
const
QString
&
path
);
void
setAutopilotImage
(
const
QString
&
path
);
void
setGpsImage
(
const
int
index
);
void
setAutopilotImage
(
const
int
index
);
void
setGpsImage
(
const
QString
&
path
);
protected:
UASInterface
*
activeUAS
;
QAction
*
clearAction
;
QPixmap
instructionIcon
;
QPixmap
autopilotIcon
;
QPixmap
gpsIcon
;
bool
accelStarted
;
bool
accelDone
[
6
];
bool
gyroStarted
;
...
...
@@ -55,6 +71,10 @@ protected:
QStringList
accelAxes
;
virtual
void
resizeEvent
(
QResizeEvent
*
event
);
void
setMagCalibrated
(
bool
calibrated
);
void
setGyroCalibrated
(
bool
calibrated
);
void
setAccelCalibrated
(
bool
calibrated
);
private:
Ui
::
QGCPX4SensorCalibration
*
ui
;
...
...
src/ui/px4_configuration/QGCPX4SensorCalibration.ui
View file @
ae9d9af4
...
...
@@ -6,8 +6,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
531
</width>
<height>
44
8
</height>
<width>
657
</width>
<height>
59
8
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
...
...
@@ -36,8 +36,29 @@ QPushButton#gyroButton, QPushButton#accelButton {
border: 2px solid #465158;
}
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"1,0,0,0,0,0,0"
columnstretch=
"30,0,0"
>
<item
row=
"4"
column=
"0"
colspan=
"3"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"1,0,0,0,0,0,0,0,0,0"
columnstretch=
"30,8,8,15"
>
<item
row=
"3"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
Autopilot and GPS / Compass Orientation
</string>
</property>
</widget>
</item>
<item
row=
"7"
column=
"0"
colspan=
"3"
>
<widget
class=
"QLabel"
name=
"instructionLabel"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
colspan=
"2"
>
<widget
class=
"QProgressBar"
name=
"progressBar"
>
<property
name=
"value"
>
<number>
24
</number>
</property>
</widget>
</item>
<item
row=
"8"
column=
"0"
colspan=
"4"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -45,12 +66,12 @@ QPushButton#gyroButton, QPushButton#accelButton {
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
498
</width>
<height>
21
</height>
<height>
5
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"
6
"
column=
"2"
>
<item
row=
"
9
"
column=
"2"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
...
...
@@ -63,19 +84,51 @@ QPushButton#gyroButton, QPushButton#accelButton {
</property>
</spacer>
</item>
<item
row=
"3"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"instructionLabel"
>
<item
row=
"5"
column=
"0"
>
<widget
class=
"QComboBox"
name=
"autopilotComboBox"
/>
</item>
<item
row=
"5"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"magComboBox"
/>
</item>
<item
row=
"0"
column=
"2"
rowspan=
"7"
colspan=
"2"
>
<widget
class=
"QPlainTextEdit"
name=
"textView"
/>
</item>
<item
row=
"0"
column=
"0"
rowspan=
"2"
>
<widget
class=
"QLabel"
name=
"iconLabel"
>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"scaledContents"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"
6
"
column=
"0"
colspan=
"2"
>
<layout
class=
"Q
HBoxLayout"
name=
"horizontalLayout
"
>
<item>
<widget
class=
"Q
PushButton"
name=
"magButton
"
>
<item
row=
"
9
"
column=
"0"
colspan=
"2"
>
<layout
class=
"Q
GridLayout"
name=
"gridLayout_2
"
>
<item
row=
"0"
column=
"2"
>
<widget
class=
"Q
Label"
name=
"accelLabel
"
>
<property
name=
"text"
>
<string>
Magnetometer
</string>
<string/>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"gyroLabel"
>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QPushButton"
name=
"gyroButton"
>
<property
name=
"text"
>
<string>
Gyroscope
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../../../qgroundcontrol.qrc"
>
...
...
@@ -83,10 +136,10 @@ QPushButton#gyroButton, QPushButton#accelButton {
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"
gyro
Button"
>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"
mag
Button"
>
<property
name=
"text"
>
<string>
Gyroscope
</string>
<string>
Magnetometer
</string>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../../../qgroundcontrol.qrc"
>
...
...
@@ -94,7 +147,7 @@ QPushButton#gyroButton, QPushButton#accelButton {
</property>
</widget>
</item>
<item>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QPushButton"
name=
"accelButton"
>
<property
name=
"text"
>
<string>
Accelerometer
</string>
...
...
@@ -105,28 +158,32 @@ QPushButton#gyroButton, QPushButton#accelButton {
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"magLabel"
>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignCenter
</set>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"
0"
column=
"0"
rowspan=
"2
"
>
<widget
class=
"QLabel"
name=
"
icon
Label"
>
<item
row=
"
4"
column=
"0
"
>
<widget
class=
"QLabel"
name=
"
autopilot
Label"
>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"scaledContents"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"
2"
column=
"0
"
>
<widget
class=
"Q
ProgressBar"
name=
"progressBar
"
>
<property
name=
"
value
"
>
<
number>
24
</number
>
<item
row=
"
4"
column=
"1
"
>
<widget
class=
"Q
Label"
name=
"gpsLabel
"
>
<property
name=
"
text
"
>
<
string/
>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
rowspan=
"3"
colspan=
"2"
>
<widget
class=
"QPlainTextEdit"
name=
"textView"
/>
</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