Commit e8b9da14 authored by Bryan Godbolt's avatar Bryan Godbolt

working on itertator in paramlist

parent f422574e
......@@ -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
}
}
......@@ -75,7 +75,7 @@ ParameterList::const_iterator::const_iterator()
}
ParameterList::begin()
const_iterator ParameterList::begin()
{
}
......
......@@ -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;
QMap<QGCParamID, Parameter>::const_iterator paramIter;
int componentID;
QGCParamID 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment