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
f4c240a1
Commit
f4c240a1
authored
Sep 15, 2011
by
LM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed earlier merge error, linechart operational again
parent
cbc8dde7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
PxQuadMAV.cc
src/uas/PxQuadMAV.cc
+13
-13
UASWaypointManager.cc
src/uas/UASWaypointManager.cc
+1
-1
MainWindow.cc
src/ui/MainWindow.cc
+1
-1
No files found.
src/uas/PxQuadMAV.cc
View file @
f4c240a1
...
...
@@ -108,19 +108,19 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
"vis. z"
,
"m"
,
pos
.
z
,
time
);
}
break
;
case
MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE
:
{
mavlink_global_vision_position_estimate_t
pos
;
mavlink_msg_global_vision_position_estimate_decode
(
&
message
,
&
pos
);
quint64
time
=
getUnixTime
(
pos
.
usec
);
//emit valueChanged(uasId, "vis. time", pos.usec, time);
emit
valueChanged
(
uasId
,
"glob. vis. roll"
,
"rad"
,
pos
.
roll
,
time
);
emit
valueChanged
(
uasId
,
"glob. vis. pitch"
,
"rad"
,
pos
.
pitch
,
time
);
emit
valueChanged
(
uasId
,
"glob. vis. yaw"
,
"rad"
,
pos
.
yaw
,
time
);
emit
valueChanged
(
uasId
,
"glob. vis. x"
,
"m"
,
pos
.
x
,
time
);
emit
valueChanged
(
uasId
,
"glob. vis. y"
,
"m"
,
pos
.
y
,
time
);
emit
valueChanged
(
uasId
,
"glob. vis. z"
,
"m"
,
pos
.
z
,
time
);
}
break
;
//
case MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE: {
//
mavlink_global_vision_position_estimate_t pos;
//
mavlink_msg_global_vision_position_estimate_decode(&message, &pos);
//
quint64 time = getUnixTime(pos.usec);
//
//emit valueChanged(uasId, "vis. time", pos.usec, time);
//
emit valueChanged(uasId, "glob. vis. roll", "rad", pos.roll, time);
//
emit valueChanged(uasId, "glob. vis. pitch", "rad", pos.pitch, time);
//
emit valueChanged(uasId, "glob. vis. yaw", "rad", pos.yaw, time);
//
emit valueChanged(uasId, "glob. vis. x", "m", pos.x, time);
//
emit valueChanged(uasId, "glob. vis. y", "m", pos.y, time);
//
emit valueChanged(uasId, "glob. vis. z", "m", pos.z, time);
//
}
//
break;
case
MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE
:
{
mavlink_vicon_position_estimate_t
pos
;
mavlink_msg_vicon_position_estimate_decode
(
&
message
,
&
pos
);
...
...
src/uas/UASWaypointManager.cc
View file @
f4c240a1
...
...
@@ -92,7 +92,7 @@ void UASWaypointManager::handleLocalPositionChanged(UASInterface* mav, double x,
{
Q_UNUSED
(
mav
);
Q_UNUSED
(
time
);
if
(
waypoints
.
count
()
>
0
&&
currentWaypoint
&&
(
currentWaypoint
->
getFrame
()
==
MAV_FRAME_LOCAL
||
currentWaypoint
->
getFrame
()
==
MAV_FRAME_LOCAL_ENU
))
if
(
waypoints
.
count
()
>
0
&&
currentWaypoint
&&
(
currentWaypoint
->
getFrame
()
==
MAV_FRAME_LOCAL
_NED
||
currentWaypoint
->
getFrame
()
==
MAV_FRAME_LOCAL_ENU
))
{
double
xdiff
=
x
-
currentWaypoint
->
getX
();
double
ydiff
=
y
-
currentWaypoint
->
getY
();
...
...
src/ui/MainWindow.cc
View file @
f4c240a1
...
...
@@ -1190,7 +1190,7 @@ void MainWindow::UASCreated(UASInterface* uas)
{
// Center widgets
linechartWidget
=
new
Linecharts
(
this
);
//linechartWidget FIXME
linechartWidget
->
addSource
(
mavlinkDecoder
);
addCentralWidget
(
linechartWidget
,
tr
(
"Realtime Plot"
));
}
...
...
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