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
5f021441
Commit
5f021441
authored
Jul 03, 2011
by
lm
Browse files
Options
Browse Files
Download
Plain Diff
Merged in dev, reduced some update rates
parents
ca90bb6c
c3119986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
31 deletions
+35
-31
qgroundcontrol.pri
qgroundcontrol.pri
+2
-2
DebugConsole.cc
src/ui/DebugConsole.cc
+32
-28
UASInfoWidget.h
src/ui/uas/UASInfoWidget.h
+1
-1
No files found.
qgroundcontrol.pri
View file @
5f021441
...
...
@@ -71,8 +71,8 @@ macx {
#CONFIG -= x86 # phonon
#message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
# debug {
QMAKE_CXXFLAGS += -finstrument-functions
LIBS += -lSaturn
#
QMAKE_CXXFLAGS += -finstrument-functions
#
LIBS += -lSaturn
CONFIG += console
# }
#}
...
...
src/ui/DebugConsole.cc
View file @
5f021441
...
...
@@ -255,30 +255,32 @@ void DebugConsole::setAutoHold(bool hold)
void
DebugConsole
::
receiveTextMessage
(
int
id
,
int
component
,
int
severity
,
QString
text
)
{
Q_UNUSED
(
severity
);
QString
name
=
UASManager
::
instance
()
->
getUASForId
(
id
)
->
getUASName
();
QString
comp
;
// Get a human readable name if possible
switch
(
component
)
{
// TODO: To be completed
case
MAV_COMP_ID_IMU
:
comp
=
tr
(
"IMU"
);
break
;
case
MAV_COMP_ID_MAPPER
:
comp
=
tr
(
"MAPPER"
);
break
;
case
MAV_COMP_ID_WAYPOINTPLANNER
:
comp
=
tr
(
"WP-PLANNER"
);
break
;
case
MAV_COMP_ID_AIRSLAM
:
comp
=
tr
(
"AIRSLAM"
);
break
;
default:
comp
=
QString
::
number
(
component
);
break
;
}
if
(
isVisible
())
{
QString
name
=
UASManager
::
instance
()
->
getUASForId
(
id
)
->
getUASName
();
QString
comp
;
// Get a human readable name if possible
switch
(
component
)
{
// TODO: To be completed
case
MAV_COMP_ID_IMU
:
comp
=
tr
(
"IMU"
);
break
;
case
MAV_COMP_ID_MAPPER
:
comp
=
tr
(
"MAPPER"
);
break
;
case
MAV_COMP_ID_WAYPOINTPLANNER
:
comp
=
tr
(
"WP-PLANNER"
);
break
;
case
MAV_COMP_ID_SYSTEM_CONTROL
:
comp
=
tr
(
"SYS-CONTROL"
);
break
;
default:
comp
=
QString
::
number
(
component
);
break
;
}
m_ui
->
receiveText
->
appendHtml
(
QString
(
"<font color=
\"
%1
\"
>(%2:%3) %4</font>
\n
"
).
arg
(
UASManager
::
instance
()
->
getUASForId
(
id
)
->
getColor
().
name
(),
name
,
comp
,
text
));
//m_ui->receiveText->appendPlainText("");
m_ui
->
receiveText
->
appendHtml
(
QString
(
"<font color=
\"
%1
\"
>(%2:%3) %4</font>
\n
"
).
arg
(
UASManager
::
instance
()
->
getUASForId
(
id
)
->
getColor
().
name
(),
name
,
comp
,
text
));
}
}
void
DebugConsole
::
updateTrafficMeasurements
()
...
...
@@ -431,11 +433,13 @@ void DebugConsole::receiveBytes(LinkInterface* link, QByteArray bytes)
}
}
if
(
lineBuffer
.
length
()
>
0
)
{
m_ui
->
receiveText
->
insertPlainText
(
lineBuffer
);
// Ensure text area scrolls correctly
m_ui
->
receiveText
->
ensureCursorVisible
();
if
(
lineBuffer
.
length
()
>
0
)
{
if
(
isVisible
())
{
m_ui
->
receiveText
->
insertPlainText
(
lineBuffer
);
// Ensure text area scrolls correctly
m_ui
->
receiveText
->
ensureCursorVisible
();
}
lineBuffer
.
clear
();
}
}
...
...
src/ui/uas/UASInfoWidget.h
View file @
5f021441
...
...
@@ -95,7 +95,7 @@ protected:
QString
name
;
quint64
startTime
;
QMap
<
QString
,
int
>
errors
;
static
const
int
updateInterval
=
2
00
;
///< Refresh interval in milliseconds
static
const
int
updateInterval
=
8
00
;
///< Refresh interval in milliseconds
void
showEvent
(
QShowEvent
*
event
);
void
hideEvent
(
QHideEvent
*
event
);
...
...
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