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


Ignore:
Timestamp:
10/04/18 13:53:11 (4 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/DataPlot2D.cpp

    r244 r269  
    104104}
    105105
    106 void DataPlot2D::XmlEvent(QDomElement dom) {
    107   if (dom.attribute("curve") != "") {
    108     QString type = dom.attribute("type");
    109     int r = dom.attribute("r").toInt();
    110     int g = dom.attribute("g").toInt();
    111     int b = dom.attribute("b").toInt();
    112     QString name = dom.attribute("curve");
     106void DataPlot2D::XmlEvent(QDomElement *dom) {
     107  if (dom->attribute("curve") != "") {
     108    QString type = dom->attribute("type");
     109    int r = dom->attribute("r").toInt();
     110    int g = dom->attribute("g").toInt();
     111    int b = dom->attribute("b").toInt();
     112    QString name = dom->attribute("curve");
    113113    addCurve(QPen(QColor(r, g, b, 255)), name, type);
    114114  } else {
Note: See TracChangeset for help on using the changeset viewer.