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
d4f5cb86
Commit
d4f5cb86
authored
Feb 11, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed stupid logging bug
parent
7e337668
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
130 additions
and
8 deletions
+130
-8
qgroundcontrol.pro
qgroundcontrol.pro
+6
-3
UAS.cc
src/uas/UAS.cc
+6
-4
QGCSettingsWidget.cc
src/ui/QGCSettingsWidget.cc
+14
-0
QGCSettingsWidget.h
src/ui/QGCSettingsWidget.h
+22
-0
QGCSettingsWidget.ui
src/ui/QGCSettingsWidget.ui
+81
-0
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+1
-1
No files found.
qgroundcontrol.pro
View file @
d4f5cb86
...
...
@@ -157,7 +157,8 @@ FORMS += src/ui/MainWindow.ui \
src
/
ui
/
QGCMAVLinkLogPlayer
.
ui
\
src
/
ui
/
QGCWaypointListMulti
.
ui
\
src
/
ui
/
mission
/
QGCCustomWaypointAction
.
ui
\
src
/
ui
/
QGCUDPLinkConfiguration
.
ui
src
/
ui
/
QGCUDPLinkConfiguration
.
ui
\
src
/
ui
/
QGCSettingsWidget
.
ui
INCLUDEPATH
+=
src
\
src
/
ui
\
...
...
@@ -268,7 +269,8 @@ HEADERS += src/MG.h \
src
/
comm
/
MAVLinkSimulationMAV
.
h
\
src
/
uas
/
QGCMAVLinkUASFactory
.
h
\
src
/
ui
/
QGCWaypointListMulti
.
h
\
src
/
ui
/
QGCUDPLinkConfiguration
.
h
src
/
ui
/
QGCUDPLinkConfiguration
.
h
\
src
/
ui
/
QGCSettingsWidget
.
h
#
Google
Earth
is
only
supported
on
Mac
OS
and
Windows
with
Visual
Studio
Compiler
macx
|
win32
-
msvc2008
:
{
...
...
@@ -394,7 +396,8 @@ SOURCES += src/main.cc \
src
/
comm
/
MAVLinkSimulationMAV
.
cc
\
src
/
uas
/
QGCMAVLinkUASFactory
.
cc
\
src
/
ui
/
QGCWaypointListMulti
.
cc
\
src
/
ui
/
QGCUDPLinkConfiguration
.
cc
src
/
ui
/
QGCUDPLinkConfiguration
.
cc
\
src
/
ui
/
QGCSettingsWidget
.
cc
macx
|
win32
-
msvc2008
:
{
SOURCES
+=
src
/
ui
/
map3D
/
QGCGoogleEarthView
.
cc
...
...
src/uas/UAS.cc
View file @
d4f5cb86
...
...
@@ -164,13 +164,15 @@ void UAS::receiveMessageNamedValue(const mavlink_message_t& message)
{
mavlink_named_value_float_t
val
;
mavlink_msg_named_value_float_decode
(
&
message
,
&
val
);
emit
valueChanged
(
this
->
getUASID
(),
QString
((
char
*
)
val
.
name
),
tr
(
"raw"
),
val
.
value
,
getUnixTime
());
QByteArray
bytes
(
val
.
name
,
MAVLINK_MSG_NAMED_VALUE_FLOAT_FIELD_NAME_LEN
);
emit
valueChanged
(
this
->
getUASID
(),
QString
(
bytes
),
tr
(
"raw"
),
val
.
value
,
getUnixTime
());
}
else
if
(
message
.
msgid
==
MAVLINK_MSG_ID_NAMED_VALUE_INT
)
{
mavlink_named_value_int_t
val
;
mavlink_msg_named_value_int_decode
(
&
message
,
&
val
);
emit
valueChanged
(
this
->
getUASID
(),
QString
((
char
*
)
val
.
name
),
tr
(
"raw"
),
val
.
value
,
getUnixTime
());
QByteArray
bytes
(
val
.
name
,
MAVLINK_MSG_NAMED_VALUE_INT_FIELD_NAME_LEN
);
emit
valueChanged
(
this
->
getUASID
(),
QString
(
bytes
),
tr
(
"raw"
),
val
.
value
,
getUnixTime
());
}
}
...
...
@@ -590,7 +592,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
// SANITY CHECK
// only accept values in a realistic range
// quint64 time = getUnixTime(pos.usec);
quint64
time
=
MG
::
TIME
::
getGroundTimeNow
();
quint64
time
=
getUnixTime
();
emit
valueChanged
(
uasId
,
"latitude"
,
"deg"
,
pos
.
lat
,
time
);
emit
valueChanged
(
uasId
,
"longitude"
,
"deg"
,
pos
.
lon
,
time
);
...
...
@@ -828,7 +830,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
case
MAVLINK_MSG_ID_STATUSTEXT
:
{
QByteArray
b
;
b
.
resize
(
256
);
b
.
resize
(
MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN
);
mavlink_msg_statustext_get_text
(
&
message
,
(
int8_t
*
)
b
.
data
());
//b.append('\0');
QString
text
=
QString
(
b
);
...
...
src/ui/QGCSettingsWidget.cc
0 → 100644
View file @
d4f5cb86
#include "QGCSettingsWidget.h"
#include "ui_QGCSettingsWidget.h"
QGCSettingsWidget
::
QGCSettingsWidget
(
QWidget
*
parent
)
:
QDialog
(
parent
),
ui
(
new
Ui
::
QGCSettingsWidget
)
{
ui
->
setupUi
(
this
);
}
QGCSettingsWidget
::~
QGCSettingsWidget
()
{
delete
ui
;
}
src/ui/QGCSettingsWidget.h
0 → 100644
View file @
d4f5cb86
#ifndef QGCSETTINGSWIDGET_H
#define QGCSETTINGSWIDGET_H
#include <QDialog>
namespace
Ui
{
class
QGCSettingsWidget
;
}
class
QGCSettingsWidget
:
public
QDialog
{
Q_OBJECT
public:
explicit
QGCSettingsWidget
(
QWidget
*
parent
=
0
);
~
QGCSettingsWidget
();
private:
Ui
::
QGCSettingsWidget
*
ui
;
};
#endif // QGCSETTINGSWIDGET_H
src/ui/QGCSettingsWidget.ui
0 → 100644
View file @
d4f5cb86
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
QGCSettingsWidget
</class>
<widget
class=
"QDialog"
name=
"QGCSettingsWidget"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
467
</width>
<height>
294
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Dialog
</string>
</property>
<widget
class=
"QDialogButtonBox"
name=
"buttonBox"
>
<property
name=
"geometry"
>
<rect>
<x>
30
</x>
<y>
240
</y>
<width>
341
</width>
<height>
32
</height>
</rect>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"standardButtons"
>
<set>
QDialogButtonBox::Cancel|QDialogButtonBox::Ok
</set>
</property>
</widget>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"geometry"
>
<rect>
<x>
30
</x>
<y>
20
</y>
<width>
401
</width>
<height>
16
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
QGroundControl Settings - Work in Progress, no Settings yet
</string>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>
buttonBox
</sender>
<signal>
accepted()
</signal>
<receiver>
QGCSettingsWidget
</receiver>
<slot>
accept()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
<x>
248
</x>
<y>
254
</y>
</hint>
<hint
type=
"destinationlabel"
>
<x>
157
</x>
<y>
274
</y>
</hint>
</hints>
</connection>
<connection>
<sender>
buttonBox
</sender>
<signal>
rejected()
</signal>
<receiver>
QGCSettingsWidget
</receiver>
<slot>
reject()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
<x>
316
</x>
<y>
260
</y>
</hint>
<hint
type=
"destinationlabel"
>
<x>
286
</x>
<y>
274
</y>
</hint>
</hints>
</connection>
</connections>
</ui>
src/ui/linechart/LinechartWidget.cc
View file @
d4f5cb86
...
...
@@ -365,7 +365,7 @@ void LinechartWidget::appendData(int uasId, const QString& curve, const QString&
// Log data
if
(
logging
)
{
if
(
activePlot
->
isVisible
(
curve
))
if
(
activePlot
->
isVisible
(
curve
+
unit
))
{
if
(
logStartTime
==
0
)
logStartTime
=
usec
;
qint64
time
=
usec
-
logStartTime
;
...
...
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