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
7714d153
Commit
7714d153
authored
Jun 16, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed debug messages
parent
0303d346
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
UAS.cc
src/uas/UAS.cc
+1
-1
UASWaypointManager.cc
src/uas/UASWaypointManager.cc
+0
-2
WaypointList.cc
src/ui/WaypointList.cc
+5
-4
No files found.
src/uas/UAS.cc
View file @
7714d153
...
...
@@ -428,7 +428,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
mavlink_waypoint_t
wp
;
mavlink_msg_waypoint_decode
(
&
message
,
&
wp
);
qDebug
()
<<
"got waypoint ("
<<
wp
.
seq
<<
") from ID "
<<
message
.
sysid
<<
" x="
<<
wp
.
x
<<
" y="
<<
wp
.
y
<<
" z="
<<
wp
.
z
;
//
qDebug() << "got waypoint (" << wp.seq << ") from ID " << message.sysid << " x=" << wp.x << " y=" << wp.y << " z=" << wp.z;
if
(
wp
.
target_system
==
mavlink
->
getSystemId
()
&&
wp
.
target_component
==
mavlink
->
getComponentId
())
{
waypointManager
.
handleWaypoint
(
message
.
sysid
,
message
.
compid
,
&
wp
);
...
...
src/uas/UASWaypointManager.cc
View file @
7714d153
...
...
@@ -37,8 +37,6 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_
{
if
(
systemId
==
current_partner_systemid
&&
compId
==
current_partner_compid
&&
current_state
==
WP_GETLIST_GETWPS
&&
wp
->
seq
==
current_wp_id
)
{
qDebug
()
<<
"got waypoint ("
<<
wp
->
seq
<<
") from ID "
<<
systemId
<<
" x="
<<
wp
->
x
<<
" y="
<<
wp
->
y
<<
" z="
<<
wp
->
z
;
if
(
wp
->
seq
==
current_wp_id
)
{
//update the UI FIXME
...
...
src/ui/WaypointList.cc
View file @
7714d153
...
...
@@ -159,8 +159,7 @@ void WaypointList::read()
{
removeWaypoint
(
waypoints
[
0
]);
}
redrawList
();
emit
requestWaypoints
();
}
...
...
@@ -170,6 +169,7 @@ void WaypointList::transmit()
m_ui
->
transmitButton
->
setEnabled
(
false
);
emit
sendWaypoints
(
waypoints
);
//emit requestWaypoints(); FIXME
}
void
WaypointList
::
add
()
...
...
@@ -179,17 +179,18 @@ void WaypointList::add()
{
if
(
waypoints
.
size
()
>
0
)
{
addWaypoint
(
new
Waypoint
(
waypoints
.
size
(),
0.0
,
0.
1
,
-
0.5
,
0.0
,
false
,
false
));
addWaypoint
(
new
Waypoint
(
waypoints
.
size
(),
0.0
,
0.
0
,
-
0.0
,
0.0
,
false
,
false
));
}
else
{
addWaypoint
(
new
Waypoint
(
waypoints
.
size
(),
0.0
,
0.0
,
-
0.
5
,
36
0.0
,
false
,
true
));
addWaypoint
(
new
Waypoint
(
waypoints
.
size
(),
0.0
,
0.0
,
-
0.
0
,
0.0
,
false
,
true
));
}
}
}
void
WaypointList
::
addWaypoint
(
Waypoint
*
wp
)
{
waypoints
.
push_back
(
wp
);
if
(
!
wpViews
.
contains
(
wp
))
{
WaypointView
*
wpview
=
new
WaypointView
(
wp
,
this
);
...
...
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