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
221a43af
Commit
221a43af
authored
Feb 15, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to simulation link
parent
53c54b15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
MAVLinkSimulationLink.cc
src/comm/MAVLinkSimulationLink.cc
+11
-6
QGCParamWidget.cc
src/ui/QGCParamWidget.cc
+2
-2
No files found.
src/comm/MAVLinkSimulationLink.cc
View file @
221a43af
...
...
@@ -845,11 +845,14 @@ void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size)
break
;
case
MAVLINK_MSG_ID_PARAM_SET
:
{
qDebug
()
<<
"SIMULATION RECEIVED COMMAND TO SET PARAMETER"
;
mavlink_param_set_t
set
;
mavlink_msg_param_set_decode
(
&
msg
,
&
set
);
// if (set.target_system == systemId)
// {
// Drop on even milliseconds
if
(
QGC
::
groundTimeMilliseconds
()
%
2
==
0
)
{
qDebug
()
<<
"SIMULATION RECEIVED COMMAND TO SET PARAMETER"
;
mavlink_param_set_t
set
;
mavlink_msg_param_set_decode
(
&
msg
,
&
set
);
// if (set.target_system == systemId)
// {
QString
key
=
QString
((
char
*
)
set
.
param_id
);
if
(
onboardParams
.
contains
(
key
))
{
...
...
@@ -864,8 +867,10 @@ void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size)
memcpy
(
stream
+
streampointer
,
buffer
,
bufferlength
);
streampointer
+=
bufferlength
;
}
// }
// }
}
}
break
;
case
MAVLINK_MSG_ID_PARAM_REQUEST_READ
:
{
qDebug
()
<<
"SIMULATION RECEIVED COMMAND TO SEND PARAMETER"
;
...
...
src/ui/QGCParamWidget.cc
View file @
221a43af
...
...
@@ -282,7 +282,7 @@ void QGCParamWidget::addParameter(int uas, int component, int paramCount, int pa
else
if
(
justWritten
&&
writeMismatch
)
{
// Mismatch, tell user
statusLabel
->
setText
(
tr
(
"FAILURE: Wrote %1: sent %2 != onboard %3"
).
arg
(
parameterName
).
arg
(
map
->
value
(
parameterName
)
,
value
));
statusLabel
->
setText
(
tr
(
"FAILURE: Wrote %1: sent %2 != onboard %3"
).
arg
(
parameterName
).
arg
(
map
->
value
(
parameterName
)
).
arg
(
value
));
}
else
{
...
...
@@ -704,7 +704,7 @@ void QGCParamWidget::retransmissionGuardTick()
{
// Re-request write operation
emit
parameterChanged
(
component
,
key
,
missingParams
->
value
(
key
));
statusLabel
->
setText
(
tr
(
"Re
-requested write
: %1: %2"
).
arg
(
key
).
arg
(
missingParams
->
value
(
key
)));
statusLabel
->
setText
(
tr
(
"Re
quested rewrite of
: %1: %2"
).
arg
(
key
).
arg
(
missingParams
->
value
(
key
)));
count
++
;
}
else
...
...
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