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
99c25b99
Commit
99c25b99
authored
Feb 16, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor adjustments
parent
f7d60564
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
41 deletions
+140
-41
earth.html
images/earth.html
+1
-1
UAS.cc
src/uas/UAS.cc
+1
-1
UASView.ui
src/ui/UASView.ui
+135
-37
UASView.cc
src/ui/uas/UASView.cc
+3
-2
No files found.
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
This diff is collapsed.
Click to expand it.
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
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