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
db714c2e
Commit
db714c2e
authored
Jul 31, 2017
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start plan request: Wait until the protocol version is definite.
parent
45817eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Vehicle.cc
src/Vehicle/Vehicle.cc
+5
-1
No files found.
src/Vehicle/Vehicle.cc
View file @
db714c2e
...
...
@@ -821,6 +821,11 @@ void Vehicle::_setMaxProtoVersion(unsigned version) {
if
(
_maxProtoVersion
==
0
||
version
<
_maxProtoVersion
)
{
_maxProtoVersion
=
version
;
emit
requestProtocolVersion
(
_maxProtoVersion
);
// Now that the protocol version is known, the mission load is safe
// as it will use the right MAVLink version to enable all features
// the vehicle supports
_startPlanRequest
();
}
}
...
...
@@ -859,7 +864,6 @@ void Vehicle::_handleCommandAck(mavlink_message_t& message)
// We aren't going to get a response back for capabilities, so stop waiting for it before we ask for mission items
qCDebug
(
VehicleLog
)
<<
"Vehicle failed to responded to MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES with error. Starting mission request."
;
_setCapabilities
(
0
);
_startPlanRequest
();
}
if
(
ack
.
command
==
MAV_CMD_REQUEST_PROTOCOL_VERSION
&&
ack
.
result
!=
MAV_RESULT_ACCEPTED
)
{
...
...
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