Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
63f0271b
Commit
63f0271b
authored
Oct 03, 2016
by
Don Gagne
Browse files
Fix for unit testing
parent
f69b38e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/uas/FileManager.cc
View file @
63f0271b
...
...
@@ -731,16 +731,23 @@ void FileManager::_sendRequest(Request* request)
if
(
_systemIdQGC
==
0
)
{
_systemIdQGC
=
qgcApp
()
->
toolbox
()
->
mavlinkProtocol
()
->
getSystemId
();
}
// Unit testing code can end up here without _dedicateLink set since it tests inidividual commands.
LinkInterface
*
link
;
if
(
_dedicatedLink
)
{
link
=
_dedicatedLink
;
}
else
{
link
=
_vehicle
->
priorityLink
();
}
Q_ASSERT
(
_vehicle
);
mavlink_msg_file_transfer_protocol_pack_chan
(
_systemIdQGC
,
// QGC System ID
0
,
// QGC Component ID
_dedicatedL
ink
->
mavlinkChannel
(),
l
ink
->
mavlinkChannel
(),
&
message
,
// Mavlink Message to pack into
0
,
// Target network
_systemIdServer
,
// Target system
0
,
// Target component
(
uint8_t
*
)
request
);
// Payload
_vehicle
->
sendMessageOnLink
(
_dedicatedL
ink
,
message
);
_vehicle
->
sendMessageOnLink
(
l
ink
,
message
);
}
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