Commit 9a9913bb authored by tstellanova's avatar tstellanova

remove unused methods

parent ea5e80af
...@@ -24,4 +24,7 @@ void QGCUASParamManager::requestParameterListUpdate(int component) ...@@ -24,4 +24,7 @@ void QGCUASParamManager::requestParameterListUpdate(int component)
Q_UNUSED(component); Q_UNUSED(component);
} }
bool QGCUASParamManager::getParameterValue(int component, const QString& parameter, QVariant& value) const {
return paramDataModel->getOnboardParameterValue(component,parameter,value);
}
...@@ -15,27 +15,7 @@ class QGCUASParamManager : public QWidget ...@@ -15,27 +15,7 @@ class QGCUASParamManager : public QWidget
public: public:
QGCUASParamManager(UASInterface* uas, QWidget *parent = 0); QGCUASParamManager(UASInterface* uas, QWidget *parent = 0);
QList<QString> getParameterNames(int component) const { virtual bool getParameterValue(int component, const QString& parameter, QVariant& value) const;
return onboardParameters.value(component)->keys();
}
QList<QVariant> getParameterValues(int component) const {
return onboardParameters.value(component)->values();
}
bool getParameterValue(int component, const QString& parameter, QVariant& value) const {
if (!onboardParameters.contains(component))
{
return false;
}
if (!onboardParameters.value(component)->contains(parameter))
{
return false;
}
value = onboardParameters.value(component)->value(parameter);
return true;
}
virtual bool isParamMinKnown(const QString& param) = 0; virtual bool isParamMinKnown(const QString& param) = 0;
virtual bool isParamMaxKnown(const QString& param) = 0; virtual bool isParamMaxKnown(const QString& param) = 0;
...@@ -66,7 +46,6 @@ protected: ...@@ -66,7 +46,6 @@ protected:
// Parameter data model // Parameter data model
UASInterface* mav; ///< The MAV this widget is controlling UASInterface* mav; ///< The MAV this widget is controlling
QMap<int, QMap<QString, QVariant>* > onboardParameters; ///< All parameters
UASParameterDataModel* paramDataModel;///< Shared data model of parameters UASParameterDataModel* paramDataModel;///< Shared data model of parameters
// Communications management // Communications management
......
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