Changeset 269 in flair-src for trunk/tools/FlairGCS/src/Map.cpp


Ignore:
Timestamp:
Oct 4, 2018, 1:53:11 PM (3 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/Map.cpp

    r244 r269  
    272272}
    273273
    274 void Map::XmlEvent(QDomElement dom) {
    275   if (dom.attribute("point") != "") {
     274void Map::XmlEvent(QDomElement *dom) {
     275  if (dom->attribute("point") != "") {
    276276    receivesize += 3 * sizeof(double);
    277277    if (mapWidget->isEnabled()) {
    278278      Landmark *landmark = new Landmark(geoMap, QGeoCoordinate(0, 0, 0),
    279                                         dom.attribute("point"), "cross");
     279                                        dom->attribute("point"), "cross");
    280280      landmark->setColor(Qt::black);
    281281      points.append(landmark);
    282       mapWidget->AddPoint(dom.attribute("point"));
     282      mapWidget->AddPoint(dom->attribute("point"));
    283283    }
    284284  } else {
Note: See TracChangeset for help on using the changeset viewer.