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
6390b271
Commit
6390b271
authored
Sep 18, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled firebug, fixed beachballing in Debug console
parent
106ffa74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
earth.html
files/images/earth.html
+1
-1
DebugConsole.cc
src/ui/DebugConsole.cc
+9
-3
DebugConsole.h
src/ui/DebugConsole.h
+1
-0
No files found.
files/images/earth.html
View file @
6390b271
...
...
@@ -7,7 +7,7 @@
<!-- QGroundControl -->
<title>
QGroundControl Google Earth View
</title>
<!-- *** Replace the key below below with your own API key, available at http://code.google.com/apis/maps/signup.html *** -->
<
script
type=
"text/javascript"
src=
"https://getfirebug.com/firebug-lite-beta.js"
></script
>
<
!--<script type="text/javascript" src="https://getfirebug.com/firebug-lite-beta.js"></script>--
>
<script
type=
"text/javascript"
src=
"https://www.google.com/jsapi?key=ABQIAAAA5Q6wxQ6lxKS8haLVdUJaqhSjosg_0jiTTs2iXtkDVG0n0If1mBRHzhWw5VqBZX-j4NuzoVpU-UaHVg"
></script>
<script
type=
"text/javascript"
>
google
.
load
(
"
earth
"
,
"
1
"
,
{
'
language
'
:
'
en
'
});
...
...
src/ui/DebugConsole.cc
View file @
6390b271
...
...
@@ -52,6 +52,7 @@ DebugConsole::DebugConsole(QWidget *parent) :
sentBytes
(),
holdBuffer
(),
lineBuffer
(
""
),
lastLineBuffer
(
0
),
lineBufferTimer
(),
snapShotTimer
(),
snapShotInterval
(
500
),
...
...
@@ -489,14 +490,19 @@ void DebugConsole::receiveBytes(LinkInterface* link, QByteArray bytes)
}
}
if
(
lineBuffer
.
length
()
>
0
)
{
if
(
lineBuffer
.
length
()
>
0
&&
(
QGC
::
groundTimeMilliseconds
()
-
lastLineBuffer
)
>
200
)
{
if
(
isVisible
())
{
m_ui
->
receiveText
->
insertPlainText
(
lineBuffer
);
m_ui
->
receiveText
->
appendPlainText
(
lineBuffer
);
lineBuffer
.
clear
();
lastLineBuffer
=
QGC
::
groundTimeMilliseconds
();
// Ensure text area scrolls correctly
m_ui
->
receiveText
->
ensureCursorVisible
();
}
lineBuffer
.
clear
();
if
(
lineBuffer
.
size
()
>
8192
)
{
lineBuffer
.
remove
(
0
,
4096
);
}
}
}
else
if
(
link
==
currLink
&&
holdOn
)
...
...
src/ui/DebugConsole.h
View file @
6390b271
...
...
@@ -128,6 +128,7 @@ protected:
QList
<
QString
>
sentBytes
;
///< Transmitted bytes, per transmission
QByteArray
holdBuffer
;
///< Buffer where bytes are stored during hold-enable
QString
lineBuffer
;
///< Buffere where bytes are stored before writing them out
quint64
lastLineBuffer
;
///< Last line buffer emission time
QTimer
lineBufferTimer
;
///< Line buffer timer
QTimer
snapShotTimer
;
///< Timer for measuring traffic snapshots
int
snapShotInterval
;
///< Snapshot interval for traffic measurements
...
...
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