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
ea2fb98b
Commit
ea2fb98b
authored
Jun 04, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
waypoint changes
parent
7865a614
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
UAS.cc
src/uas/UAS.cc
+12
-2
UAS.h
src/uas/UAS.h
+1
-0
No files found.
src/uas/UAS.cc
View file @
ea2fb98b
...
...
@@ -393,11 +393,20 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
case
MAVLINK_MSG_ID_DEBUG
:
emit
valueChanged
(
uasId
,
QString
(
"debug "
)
+
QString
::
number
(
mavlink_msg_debug_get_ind
(
&
message
)),
mavlink_msg_debug_get_value
(
&
message
),
MG
::
TIME
::
getGroundTimeNow
());
break
;
case
MAVLINK_MSG_ID_WAYPOINT_COUNT
:
{
mavlink_waypoint_count_t
wpc
;
mavlink_msg_waypoint_count_decode
(
&
message
,
&
wpc
);
waypointManager
.
handleWaypointCount
(
message
.
sysid
,
message
.
compid
,
wpc
.
count
);
}
break
;
case
MAVLINK_MSG_ID_WAYPOINT
:
{
mavlink_waypoint_t
wp
;
mavlink_msg_waypoint_decode
(
&
message
,
&
wp
);
// emit waypointUpdated(uasId, wp.id, wp.x, wp.y, wp.z, wp.yaw, wp.autocontinue, wp.active
);
waypointManager
.
handleWaypoint
(
message
.
sysid
,
message
.
compid
,
&
wp
);
}
break
;
case
MAVLINK_MSG_ID_WAYPOINT_REACHED
:
...
...
@@ -952,7 +961,8 @@ void UAS::receiveButton(int buttonIndex)
// mavlink_msg_waypoint_request_list_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, uasId, 25);
// // Send message twice to increase chance of reception
// sendMessage(msg);
// qDebug() << "UAS Request WPs";
waypointManager.requestWaypoints();
qDebug() << "UAS Request WPs";
}
void UAS::setWaypoint(Waypoint* wp)
...
...
src/uas/UAS.h
View file @
ea2fb98b
...
...
@@ -79,6 +79,7 @@ public:
/** @brief Get the links associated with this robot */
QList
<
LinkInterface
*>*
getLinks
();
friend
class
UASWaypointManager
;
protected:
int
uasId
;
///< Unique system ID
int
type
;
///< UAS type (from type enum)
...
...
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