Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
99c25b99
Commit
99c25b99
authored
Feb 16, 2011
by
lm
Browse files
Minor adjustments
parent
f7d60564
Changes
4
Hide whitespace changes
Inline
Side-by-side
images/earth.html
View file @
99c25b99
...
...
@@ -14,7 +14,7 @@ google.load("earth", "1", { 'language': 'en'});
var
ge
=
null
;
var
initialized
=
false
;
var
currAircraft
=
22
0
;
var
currAircraft
=
0
;
var
followEnabled
=
false
;
var
lastLat
=
0
;
...
...
src/uas/UAS.cc
View file @
99c25b99
...
...
@@ -898,7 +898,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
imagePackets
=
p
.
packets
;
imagePayload
=
p
.
payload
;
imageQuality
=
p
.
jpg_quality
;
imageStart
=
MG
::
TIME
::
getGroundTimeNow
();
imageStart
=
QGC
::
groundTimeMilliseconds
();
}
break
;
...
...
src/ui/UASView.ui
View file @
99c25b99
...
...
@@ -7,7 +7,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
360
</width>
<height>
11
9
</height>
<height>
1
2
1
</height>
</rect>
</property>
<property
name=
"sizePolicy"
>
...
...
@@ -111,11 +111,12 @@ QToolButton#typeButton {
font-size: 12px;
border: 0px solid #999999;
border-radius: 5px;
min-width:4
4
px;
max-width:
80
px;
min-height: 4
4
px;
max-height: 4
4
px;
min-width:4
2
px;
max-width:
42
px;
min-height: 4
2
px;
max-height: 4
2
px;
padding: 0px;
margin: 0px;
background-color: none;
}
...
...
@@ -123,12 +124,13 @@ QPushButton {
font-weight: bold;
font-size: 12px;
border: 1px solid #999999;
border-radius:
10
px;
border-radius:
8
px;
min-width: 20px;
max-width:
80
px;
max-width:
32
px;
min-height: 16px;
max-height: 16px;
padding: 2px;
spacing: 10px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #777777, stop: 1 #555555);
}
...
...
@@ -162,7 +164,7 @@ QProgressBar:horizontal {
border-radius: 4px;
text-align: center;
padding: 2px;
color: #
DDDDDF
;
color: #
111111
;
background-color: #111118;
}
...
...
@@ -173,6 +175,7 @@ QProgressBar:vertical {
font-size: 7px;
padding: 2px;
color: #DDDDDF;
min-width: 16px;
background-color: #111118;
}
...
...
@@ -182,6 +185,7 @@ QProgressBar:horizontal {
QProgressBar:horizontal QLabel {
font-size: 9px;
color: #111111;
}
QProgressBar:vertical QLabel {
...
...
@@ -236,9 +240,18 @@ QMenu::separator {
<property
name=
"spacing"
>
<number>
2
</number>
</property>
<property
name=
"margin"
>
<property
name=
"leftMargin"
>
<number>
2
</number>
</property>
<property
name=
"topMargin"
>
<number>
2
</number>
</property>
<property
name=
"rightMargin"
>
<number>
2
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item>
<widget
class=
"QGroupBox"
name=
"uasViewFrame"
>
<property
name=
"sizePolicy"
>
...
...
@@ -253,12 +266,18 @@ QMenu::separator {
<height>
0
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
130
</height>
</size>
</property>
<property
name=
"title"
>
<string/>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"1,1,10,10,10,
1
0,
8
0"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"1,1,10,10,10,0,
90,9
0"
>
<property
name=
"horizontalSpacing"
>
<number>
4
</number>
<number>
5
</number>
</property>
<property
name=
"verticalSpacing"
>
<number>
2
</number>
...
...
@@ -270,14 +289,14 @@ QMenu::separator {
<widget
class=
"QToolButton"
name=
"typeButton"
>
<property
name=
"minimumSize"
>
<size>
<width>
4
4
</width>
<height>
4
4
</height>
<width>
4
2
</width>
<height>
4
2
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
80
</width>
<height>
4
4
</height>
<width>
42
</width>
<height>
4
2
</height>
</size>
</property>
<property
name=
"baseSize"
>
...
...
@@ -334,7 +353,7 @@ QMenu::separator {
</property>
</widget>
</item>
<item
row=
"0"
column=
"
5
"
colspan=
"2"
>
<item
row=
"0"
column=
"
6
"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"modeLabel"
>
<property
name=
"maximumSize"
>
<size>
...
...
@@ -353,6 +372,9 @@ QMenu::separator {
<property
name=
"text"
>
<string>
MODE
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
rowspan=
"3"
>
...
...
@@ -374,6 +396,9 @@ QMenu::separator {
<property
name=
"text"
>
<string>
00:00:00
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"1"
column=
"3"
rowspan=
"3"
colspan=
"2"
>
...
...
@@ -395,9 +420,12 @@ QMenu::separator {
<property
name=
"text"
>
<string>
00:00:00
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"3"
column=
"
5
"
rowspan=
"2"
colspan=
"2"
>
<item
row=
"3"
column=
"
6
"
rowspan=
"2"
colspan=
"2"
>
<widget
class=
"QProgressBar"
name=
"thrustBar"
>
<property
name=
"font"
>
<font>
...
...
@@ -413,6 +441,9 @@ QMenu::separator {
<property
name=
"value"
>
<number>
0
</number>
</property>
<property
name=
"format"
>
<string>
throttle %p%
</string>
</property>
</widget>
</item>
<item
row=
"4"
column=
"2"
>
...
...
@@ -434,6 +465,9 @@ QMenu::separator {
<property
name=
"text"
>
<string>
00.00 m
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"4"
column=
"3"
colspan=
"2"
>
...
...
@@ -455,6 +489,9 @@ QMenu::separator {
<property
name=
"text"
>
<string>
00.0 m/s
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"5"
column=
"0"
rowspan=
"3"
>
...
...
@@ -545,7 +582,7 @@ QMenu::separator {
</property>
</widget>
</item>
<item
row=
"2"
column=
"
5
"
colspan=
"2"
>
<item
row=
"2"
column=
"
6
"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"positionLabel"
>
<property
name=
"minimumSize"
>
<size>
...
...
@@ -578,8 +615,8 @@ QMenu::separator {
</property>
</widget>
</item>
<item
row=
"7"
column=
"3"
colspan=
"
4
"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item
row=
"7"
column=
"3"
colspan=
"
5
"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
stretch=
"1,1,1,1,1,1,1"
>
<property
name=
"spacing"
>
<number>
4
</number>
</property>
...
...
@@ -594,6 +631,12 @@ QMenu::separator {
<height>
22
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Liftoff / Launch
</string>
</property>
...
...
@@ -617,6 +660,12 @@ QMenu::separator {
<height>
22
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Loiter / Wait at current position
</string>
</property>
...
...
@@ -640,6 +689,12 @@ QMenu::separator {
<height>
22
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Continue flightplan
</string>
</property>
...
...
@@ -663,6 +718,12 @@ QMenu::separator {
<height>
22
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Fly straight to landing location
</string>
</property>
...
...
@@ -680,6 +741,12 @@ QMenu::separator {
</item>
<item>
<widget
class=
"QPushButton"
name=
"shutdownButton"
>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Only in standby mode: Power off system
</string>
</property>
...
...
@@ -697,12 +764,24 @@ QMenu::separator {
</item>
<item>
<widget
class=
"QPushButton"
name=
"abortButton"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Minimum"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
26
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Emergency land system at closest possible site
</string>
</property>
...
...
@@ -726,6 +805,12 @@ QMenu::separator {
<height>
22
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
38
</width>
<height>
22
</height>
</size>
</property>
<property
name=
"toolTip"
>
<string>
Kill immediately all onboard power
</string>
</property>
...
...
@@ -743,29 +828,14 @@ QMenu::separator {
</item>
</layout>
</item>
<item
row=
"5"
column=
"2"
rowspan=
"2"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"navLabel"
>
<property
name=
"font"
>
<font>
<pointsize>
-1
</pointsize>
<weight>
50
</weight>
<italic>
false
</italic>
<bold>
false
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
NAV
</string>
</property>
</widget>
</item>
<item
row=
"8"
column=
"0"
colspan=
"7"
>
<item
row=
"8"
column=
"0"
colspan=
"8"
>
<widget
class=
"QLabel"
name=
"statusTextLabel"
>
<property
name=
"text"
>
<string>
Waiting for first status update..
</string>
</property>
</widget>
</item>
<item
row=
"
5
"
column=
"
5
"
>
<item
row=
"
6
"
column=
"
6
"
>
<widget
class=
"QLabel"
name=
"stateLabel"
>
<property
name=
"maximumSize"
>
<size>
...
...
@@ -786,6 +856,34 @@ QMenu::separator {
</property>
</widget>
</item>
<item
row=
"6"
column=
"2"
colspan=
"3"
>
<widget
class=
"QLabel"
name=
"navLabel"
>
<property
name=
"font"
>
<font>
<pointsize>
-1
</pointsize>
<weight>
50
</weight>
<italic>
false
</italic>
<bold>
false
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
NAV
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"5"
rowspan=
"7"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
8
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
...
...
src/ui/uas/UASView.cc
View file @
99c25b99
...
...
@@ -132,6 +132,7 @@ UASView::UASView(UASInterface* uas, QWidget *parent) :
// Heartbeat fade
refreshTimer
=
new
QTimer
(
this
);
connect
(
refreshTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
refresh
()));
refreshTimer
->
start
(
updateInterval
);
// Hide kill and shutdown buttons per default
m_ui
->
killButton
->
hide
();
...
...
@@ -270,7 +271,7 @@ void UASView::receiveHeartbeat(UASInterface* uas)
{
Q_UNUSED
(
uas
);
heartbeatColor
=
QColor
(
20
,
200
,
20
);
QString
colorstyle
(
"QGroupBox { border-radius: 5px; padding: 2px; margin:
2
px; border: 0px; background-color: %1; }"
);
QString
colorstyle
(
"QGroupBox { border-radius: 5px; padding: 2px; margin:
0
px; border: 0px; background-color: %1; }"
);
m_ui
->
heartbeatIcon
->
setStyleSheet
(
colorstyle
.
arg
(
heartbeatColor
.
name
()));
if
(
timeout
)
setBackgroundColor
();
timeout
=
false
;
...
...
@@ -604,7 +605,7 @@ void UASView::refresh()
}
generalUpdateCount
++
;
QString
colorstyle
(
"QGroupBox { border-radius: 5px; padding: 2px; margin:
2
px; border: 0px; background-color: %1; }"
);
QString
colorstyle
(
"QGroupBox { border-radius: 5px; padding: 2px; margin:
0
px; border: 0px; background-color: %1; }"
);
if
(
timeout
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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