Changeset 61 in pacpussensors for trunk/Sick/SickComponent.cpp


Ignore:
Timestamp:
Jul 22, 2014, 4:36:25 PM (10 years ago)
Author:
DHERBOMEZ Gérald
Message:

commit after experiments on track
Issue with GPS receiver, no data recorded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Sick/SickComponent.cpp

    r42 r61  
    7474    // Sick LD-MRS
    7575    int num = 0;
    76     while (param.getProperty("sickldmrs_"+QString::number(num)) != QString::null){
    77         QString information = param.getProperty("sickldmrs_"+QString::number(num));
     76    while (config.getProperty("sickldmrs_"+QString::number(num)) != QString::null){
     77        QString information = config.getProperty("sickldmrs_"+QString::number(num));
    7878        QStringList list = information.split(":");
    7979        int recording = 0;
    80         if (param.getProperty("sickldmrs_"+QString::number(num)+"_recording") != QString::null)
     80        if (config.getProperty("sickldmrs_"+QString::number(num)+"_recording") != QString::null)
    8181        {
    82              recording = param.getProperty("sickldmrs_"+QString::number(num)+"_recording").toInt();
     82             recording = config.getProperty("sickldmrs_"+QString::number(num)+"_recording").toInt();
    8383        }
    8484
     
    8989    // Sick LMS 151
    9090       num = 0;
    91      while (param.getProperty("sicklms151_"+QString::number(num)) != QString::null){
    92         QString information = param.getProperty("sicklms151_"+QString::number(num));
     91     while (config.getProperty("sicklms151_"+QString::number(num)) != QString::null){
     92        QString information = config.getProperty("sicklms151_"+QString::number(num));
    9393        QStringList list = information.split(":");
    9494        int recording = 0;
    95         if (param.getProperty("sicklms151_"+QString::number(num)+"_recording") != QString::null)
     95        if (config.getProperty("sicklms151_"+QString::number(num)+"_recording") != QString::null)
    9696        {
    97              recording = param.getProperty("sicklms151_"+QString::number(num)+"_recording").toInt();
     97             recording = config.getProperty("sicklms151_"+QString::number(num)+"_recording").toInt();
    9898        }
    9999
     
    104104     // Sick LMS 511
    105105     num = 0;
    106    while (param.getProperty("sicklms511_"+QString::number(num)) != QString::null){
    107       QString information = param.getProperty("sicklms511_"+QString::number(num));
     106   while (config.getProperty("sicklms511_"+QString::number(num)) != QString::null){
     107      QString information = config.getProperty("sicklms511_"+QString::number(num));
    108108      QStringList list = information.split(":");
    109109      int recording = 0;
    110       if (param.getProperty("sicklms511_"+QString::number(num)+"_recording") != QString::null)
     110      if (config.getProperty("sicklms511_"+QString::number(num)+"_recording") != QString::null)
    111111      {
    112            recording = param.getProperty("sicklms511_"+QString::number(num)+"_recording").toInt();
     112           recording = config.getProperty("sicklms511_"+QString::number(num)+"_recording").toInt();
    113113      }
    114114
Note: See TracChangeset for help on using the changeset viewer.