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
4d4c0b63
Commit
4d4c0b63
authored
Aug 06, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
74fb1dae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Vehicle.cc
src/Vehicle/Vehicle.cc
+1
-0
Vehicle.h
src/Vehicle/Vehicle.h
+6
-6
No files found.
src/Vehicle/Vehicle.cc
View file @
4d4c0b63
...
...
@@ -3389,6 +3389,7 @@ void Vehicle::requestMessage(RequestMessageResultHandler resultHandler, void* re
{
RequestMessageInfo_t
*
pInfo
=
new
RequestMessageInfo_t
;
*
pInfo
=
{
};
pInfo
->
msgId
=
messageId
;
pInfo
->
compId
=
compId
;
pInfo
->
resultHandler
=
resultHandler
;
...
...
src/Vehicle/Vehicle.h
View file @
4d4c0b63
...
...
@@ -1582,12 +1582,12 @@ private:
// requestMessage handling
typedef
struct
{
bool
commandAckReceived
=
false
;
// We keep track of the ack/message being received since the order in which this will come in is random
bool
messageReceived
=
false
;
// We only delete the allocated RequestMessageInfo_t when both happen (or the message wait times out)
int
msgId
=
0
;
int
compId
=
0
;
RequestMessageResultHandler
resultHandler
=
nullptr
;
void
*
resultHandlerData
=
nullptr
;
bool
commandAckReceived
;
// We keep track of the ack/message being received since the order in which this will come in is random
bool
messageReceived
;
// We only delete the allocated RequestMessageInfo_t when both happen (or the message wait times out)
int
msgId
;
int
compId
;
RequestMessageResultHandler
resultHandler
;
void
*
resultHandlerData
;
}
RequestMessageInfo_t
;
static
void
_requestMessageCmdResultHandler
(
void
*
resultHandlerData
,
int
compId
,
MAV_RESULT
result
,
bool
noResponsefromVehicle
);
...
...
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