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
1301c56b
Commit
1301c56b
authored
Jun 01, 2010
by
lm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@pixhawk.ethz.ch:qgroundcontrol
parents
e6d7dec4
18dc426f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
PxQuadMAV.cc
src/uas/PxQuadMAV.cc
+3
-0
UAS.cc
src/uas/UAS.cc
+6
-1
No files found.
src/uas/PxQuadMAV.cc
View file @
1301c56b
...
...
@@ -19,6 +19,9 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
UAS
::
receiveMessage
(
link
,
message
);
mavlink_message_t
*
msg
=
&
message
;
qDebug
()
<<
"PX RECEIVED"
<<
msg
->
sysid
<<
msg
->
compid
<<
msg
->
msgid
;
// Handle your special messages
switch
(
msg
->
msgid
)
{
...
...
src/uas/UAS.cc
View file @
1301c56b
...
...
@@ -117,6 +117,8 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
addLink
(
link
);
}
qDebug
()
<<
"UAS RECEIVED"
<<
message
.
sysid
<<
message
.
compid
<<
message
.
msgid
;
if
(
message
.
sysid
==
uasId
)
{
QString
uasState
;
...
...
@@ -368,13 +370,16 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
mavlink_gps_raw_t
pos
;
mavlink_msg_gps_raw_decode
(
&
message
,
&
pos
);
quint64
time
=
getUnixTime
(
pos
.
usec
);
// quint64 time = getUnixTime(pos.usec);
quint64
time
=
MG
::
TIME
::
getGroundTimeNow
();
emit
valueChanged
(
uasId
,
"lat"
,
pos
.
lat
,
time
);
emit
valueChanged
(
uasId
,
"lon"
,
pos
.
lon
,
time
);
emit
valueChanged
(
uasId
,
"alt"
,
pos
.
alt
,
time
);
emit
valueChanged
(
uasId
,
"g-vx"
,
pos
.
vx
,
time
);
emit
valueChanged
(
uasId
,
"g-vy"
,
pos
.
vy
,
time
);
emit
valueChanged
(
uasId
,
"g-vz"
,
pos
.
vz
,
time
);
qDebug
()
<<
"GOT GPS RAW"
;
emit
globalPositionChanged
(
this
,
pos
.
lon
,
pos
.
lat
,
pos
.
alt
,
time
);
}
break
;
case
MAVLINK_MSG_ID_PARAM_VALUE
:
...
...
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