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
5120b481
Commit
5120b481
authored
Jun 12, 2016
by
Don Gagne
Committed by
GitHub
Jun 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3547 from DonLakeFlyer/DisregardNack
Fix MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES send/nack
parents
d8faf3ac
046f16e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Vehicle.cc
src/Vehicle/Vehicle.cc
+7
-2
No files found.
src/Vehicle/Vehicle.cc
View file @
5120b481
...
...
@@ -195,8 +195,8 @@ Vehicle::Vehicle(LinkInterface* link,
connect
(
_parameterLoader
,
&
ParameterLoader
::
parametersReady
,
_autopilotPlugin
,
&
AutoPilotPlugin
::
_parametersReadyPreChecks
);
connect
(
_parameterLoader
,
&
ParameterLoader
::
parameterListProgress
,
_autopilotPlugin
,
&
AutoPilotPlugin
::
parameterListProgress
);
// Ask the vehicle for firmware version info
doCommandLong
(
defaultComponentId
()
,
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
,
1
/* request firmware version */
);
// Ask the vehicle for firmware version info
. This must be MAV_COMP_ID_ALL since we don't know default component id yet.
doCommandLong
(
MAV_COMP_ID_ALL
,
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
,
1
/* request firmware version */
);
_firmwarePlugin
->
initializeVehicle
(
this
);
...
...
@@ -467,6 +467,11 @@ void Vehicle::_handleCommandAck(mavlink_message_t& message)
emit
commandLongAck
(
message
.
compid
,
ack
.
command
,
ack
.
result
);
if
(
ack
.
command
==
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
)
{
// Disregard failures
return
;
}
QString
commandName
;
MavCmdInfo
*
cmdInfo
=
qgcApp
()
->
toolbox
()
->
missionCommands
()
->
getMavCmdInfo
((
MAV_CMD
)
ack
.
command
,
this
);
if
(
cmdInfo
)
{
...
...
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