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
f422574e
Commit
f422574e
authored
Aug 27, 2010
by
Bryan Godbolt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
need to implement custom iterator on ParameterList
parent
e402c344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
ParameterList.cc
src/comm/ParameterList.cc
+11
-0
ParameterList.h
src/comm/ParameterList.h
+16
-1
No files found.
src/comm/ParameterList.cc
View file @
f422574e
...
...
@@ -69,6 +69,17 @@ ParameterList::~ParameterList()
{
delete
params
;
}
ParameterList
::
const_iterator
::
const_iterator
()
{
}
ParameterList
::
begin
()
{
}
/**
Get the list of parameters in the simulink model. This function does not require
any prior knowlege of the parameters. It works by first calling OpalGetParameterList to
...
...
src/comm/ParameterList.h
View file @
f422574e
...
...
@@ -37,19 +37,34 @@ namespace OpalRT
class
ParameterList
;
}
#include "OpalLink.h"
namespace
OpalRT
{
namespace
OpalRT
{
class
ParameterList
{
class
const_iterator
{
public:
const_iterator
();
private:
QMap
<
int
,
QMap
<
QGCParamID
,
Parameter
>
>::
const_iterator
componentIter
;
QMap
<
QGCParamID
,
Parameter
>::
const_iterator
paramIter
;
};
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
;
protected:
QMap
<
int
,
QMap
<
QGCParamID
,
Parameter
>
>
*
params
;
void
getParameterList
(
QMap
<
QString
,
unsigned
short
>*
);
};
}
#endif // PARAMETERLIST_H
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