Commit e8b9da14 authored by Bryan Godbolt's avatar Bryan Godbolt

working on itertator in paramlist

parent f422574e
...@@ -226,6 +226,8 @@ RESOURCES = mavground.qrc ...@@ -226,6 +226,8 @@ RESOURCES = mavground.qrc
# Include RT-LAB Library # Include RT-LAB Library
win32 { win32 {
exists(src/lib/opalrt/OpalApi.h){
message("Building support for Opal-RT")
LIBS += -LC:\OPAL-RT\RT-LAB7.2.4\Common\bin \ LIBS += -LC:\OPAL-RT\RT-LAB7.2.4\Common\bin \
-lOpalApi -lOpalApi
INCLUDEPATH += src/lib/opalrt INCLUDEPATH += src/lib/opalrt
...@@ -240,3 +242,4 @@ win32 { ...@@ -240,3 +242,4 @@ win32 {
src/comm/ParameterList.h src/comm/ParameterList.h
DEFINES += OPAL_RT DEFINES += OPAL_RT
} }
}
...@@ -75,7 +75,7 @@ ParameterList::const_iterator::const_iterator() ...@@ -75,7 +75,7 @@ ParameterList::const_iterator::const_iterator()
} }
ParameterList::begin() const_iterator ParameterList::begin()
{ {
} }
......
...@@ -41,23 +41,24 @@ namespace OpalRT ...@@ -41,23 +41,24 @@ namespace OpalRT
{ {
class ParameterList class ParameterList
{ {
public:
class const_iterator class const_iterator
{ {
public: public:
const_iterator(); const_iterator();
const_iterator(const_iterator& other);
private: private:
QMap<int, QMap<QGCParamID, Parameter> >::const_iterator componentIter; int componentID;
QMap<QGCParamID, Parameter>::const_iterator paramIter; QGCParamID paramID;
}; };
public:
ParameterList(); ParameterList();
~ParameterList(); ~ParameterList();
int setValue(int compid, QGCParamID paramid, float value); int setValue(int compid, QGCParamID paramid, float value);
float getValue(int compid, QGCParamID paramid); float getValue(int compid, QGCParamID paramid);
const_iterator begin() const; // const_iterator begin() const;
const_iterator end() const; // const_iterator end() const;
protected: protected:
QMap<int, QMap<QGCParamID, Parameter> > *params; 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