Changeset 269 in flair-src for trunk/tools/FlairGCS/src/DataPlot1D.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/DataPlot1D.cpp

    r244 r269  
    2424}
    2525
    26 void DataPlot1D::XmlEvent(QDomElement dom) {
    27   if (dom.attribute("curve") != "") {
    28     QString type = dom.attribute("type");
    29     int r = dom.attribute("r").toInt();
    30     int g = dom.attribute("g").toInt();
    31     int b = dom.attribute("b").toInt();
    32     QString name = dom.attribute("curve");
     26void DataPlot1D::XmlEvent(QDomElement *dom) {
     27  if (dom->attribute("curve") != "") {
     28    QString type = dom->attribute("type");
     29    int r = dom->attribute("r").toInt();
     30    int g = dom->attribute("g").toInt();
     31    int b = dom->attribute("b").toInt();
     32    QString name = dom->attribute("curve");
    3333    addCurve(QPen(QColor(r, g, b, 255)), name);
    3434    datas_type.append(type);
Note: See TracChangeset for help on using the changeset viewer.