Commit 6157344e authored by tstellanova's avatar tstellanova

more comms refactoring

parent 2eac0e2e
......@@ -43,10 +43,12 @@ void QGCUASParamManager::requestParameterList()
}
paramDataModel->forgetAllOnboardParameters();
received.clear();
// Clear transmission state
transmissionListMode = true;
receivedParamsList.clear();
transmissionListSizeKnown.clear();
transmissionListMode = true;
foreach (int key, transmissionMissingPackets.keys())
{
transmissionMissingPackets.value(key)->clear();
......
......@@ -62,7 +62,7 @@ protected:
UASParameterDataModel* paramDataModel;///< Shared data model of parameters
// Communications management
QVector<bool> received; ///< Successfully received parameters
QVector<bool> receivedParamsList; ///< Successfully received parameters
QMap<int, QList<int>* > transmissionMissingPackets; ///< Missing packets
QMap<int, QMap<QString, QVariant>* > transmissionMissingWriteAckPackets; ///< Missing write ACK packets
bool transmissionListMode; ///< Currently requesting list
......
......@@ -764,6 +764,7 @@ void QGCParamWidget::setParameters()
{
QMap<QString, QVariant>::iterator j;
for (j = comp->begin(); j != comp->end(); ++j) {
//TODO mavlink command for "set parameter list" ?
setParameter(compid, j.key(), j.value());
parametersSent++;
}
......
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