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
e8b9da14
Commit
e8b9da14
authored
Aug 29, 2010
by
Bryan Godbolt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on itertator in paramlist
parent
f422574e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
qgroundcontrol.pro
qgroundcontrol.pro
+3
-0
ParameterList.cc
src/comm/ParameterList.cc
+1
-1
ParameterList.h
src/comm/ParameterList.h
+7
-6
No files found.
qgroundcontrol.pro
View file @
e8b9da14
...
...
@@ -226,6 +226,8 @@ RESOURCES = mavground.qrc
#
Include
RT
-
LAB
Library
win32
{
exists
(
src
/
lib
/
opalrt
/
OpalApi
.
h
){
message
(
"Building support for Opal-RT"
)
LIBS
+=
-
LC
:
\
OPAL
-
RT
\
RT
-
LAB7
.
2.4
\
Common
\
bin
\
-
lOpalApi
INCLUDEPATH
+=
src
/
lib
/
opalrt
...
...
@@ -240,3 +242,4 @@ win32 {
src
/
comm
/
ParameterList
.
h
DEFINES
+=
OPAL_RT
}
}
src/comm/ParameterList.cc
View file @
e8b9da14
...
...
@@ -75,7 +75,7 @@ ParameterList::const_iterator::const_iterator()
}
ParameterList
::
begin
()
const_iterator
ParameterList
::
begin
()
{
}
...
...
src/comm/ParameterList.h
View file @
e8b9da14
...
...
@@ -41,23 +41,24 @@ namespace OpalRT
{
class
ParameterList
{
public:
class
const_iterator
{
public:
const_iterator
();
const_iterator
(
const_iterator
&
other
);
private:
QMap
<
int
,
QMap
<
QGCParamID
,
Parameter
>
>::
const_iterator
componentIter
;
Q
Map
<
QGCParamID
,
Parameter
>::
const_iterator
paramIter
;
int
componentID
;
Q
GCParamID
paramID
;
};
public:
ParameterList
();
~
ParameterList
();
int
setValue
(
int
compid
,
QGCParamID
paramid
,
float
value
);
float
getValue
(
int
compid
,
QGCParamID
paramid
);
const_iterator
begin
()
const
;
const_iterator
end
()
const
;
//
const_iterator begin() const;
//
const_iterator end() const;
protected:
QMap
<
int
,
QMap
<
QGCParamID
,
Parameter
>
>
*
params
;
...
...
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