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
d680d7d0
Commit
d680d7d0
authored
May 03, 2010
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added minor fixes to simulation and parameter view
parent
20edcc4d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
MAVLinkSimulationLink.cc
src/comm/MAVLinkSimulationLink.cc
+8
-0
UAS.cc
src/uas/UAS.cc
+2
-2
QGCParamWidget.cc
src/ui/QGCParamWidget.cc
+2
-1
No files found.
src/comm/MAVLinkSimulationLink.cc
View file @
d680d7d0
...
...
@@ -620,6 +620,14 @@ void MAVLinkSimulationLink::writeBytes(const char* data, qint64 size)
{
onboardParams
.
remove
(
key
);
onboardParams
.
insert
(
key
,
set
.
param_value
);
// Pack message and get size of encoded byte string
mavlink_msg_param_value_pack
(
systemId
,
componentId
,
&
msg
,
(
int8_t
*
)
key
.
toStdString
().
c_str
(),
set
.
param_value
);
// Allocate buffer with packet data
bufferlength
=
mavlink_msg_to_send_buffer
(
buffer
,
&
msg
);
//add data into datastream
memcpy
(
stream
+
streampointer
,
buffer
,
bufferlength
);
streampointer
+=
bufferlength
;
}
}
}
...
...
src/uas/UAS.cc
View file @
d680d7d0
...
...
@@ -631,8 +631,8 @@ void UAS::setParameter(int component, QString id, float value)
mavlink_message_t
msg
;
mavlink_param_set_t
p
;
p
.
param_value
=
value
;
p
.
target_system
=
uasId
;
p
.
target_component
=
component
;
p
.
target_system
=
(
uint8_t
)
uasId
;
p
.
target_component
=
(
uint8_t
)
component
;
// Copy string into buffer, ensuring not to exceed the buffer size
char
*
s
=
(
char
*
)
id
.
toStdString
().
c_str
();
...
...
src/ui/QGCParamWidget.cc
View file @
d680d7d0
...
...
@@ -153,8 +153,9 @@ void QGCParamWidget::setParameters()
}
}
}
clear
();
//mav->requestParameters();
qDebug
()
<<
__FILE__
<<
__LINE__
<<
"SETTING ALL PARAMETERS"
;
requestParameterList
();
}
void
QGCParamWidget
::
writeParameters
()
...
...
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