Ignore:
Timestamp:
10/04/18 13:53:11 (6 years ago)
Author:
Sanahuja Guillaume
Message:

flairgcs:
speed up processing time when receiving datas from uav
triger watchdog while receiving datas from uav
(avoids connection lost in uav)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/ConnectionLayout.cpp

    r260 r269  
    3838    }
    3939
    40     ParseXml(doc.firstChildElement("root").firstChildElement());
     40    QDomElement dom=doc.firstChildElement("root").firstChildElement();
     41    ParseXml(&dom);
    4142    break;
    4243  }
     
    8384}
    8485
    85 void ConnectionLayout::LoadXml(QDomDocument to_parse) {
    86   QDomElement tmp = to_parse.firstChildElement("root");
     86void ConnectionLayout::LoadXml(QDomDocument *to_parse) {
     87  QDomElement tmp = to_parse->firstChildElement("root");
    8788  while (tmp.attribute("name") != name && !tmp.isNull())
    88     tmp = to_parse.nextSiblingElement("root");
     89    tmp = to_parse->nextSiblingElement("root");
    8990
    9091  if (!tmp.isNull()) {
    91     XmlWidget::LoadXml(tmp);
     92    XmlWidget::LoadXml(&tmp);
    9293  } else {
    9394    fprintf(stderr,"%s not found in xml file \n", name.toLocal8Bit().constData());
Note: See TracChangeset for help on using the changeset viewer.