Changeset 61 in pacpussensors for trunk/Sick/SickComponent.cpp
- Timestamp:
- Jul 22, 2014, 4:36:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Sick/SickComponent.cpp
r42 r61 74 74 // Sick LD-MRS 75 75 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)); 78 78 QStringList list = information.split(":"); 79 79 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) 81 81 { 82 recording = param.getProperty("sickldmrs_"+QString::number(num)+"_recording").toInt();82 recording = config.getProperty("sickldmrs_"+QString::number(num)+"_recording").toInt(); 83 83 } 84 84 … … 89 89 // Sick LMS 151 90 90 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)); 93 93 QStringList list = information.split(":"); 94 94 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) 96 96 { 97 recording = param.getProperty("sicklms151_"+QString::number(num)+"_recording").toInt();97 recording = config.getProperty("sicklms151_"+QString::number(num)+"_recording").toInt(); 98 98 } 99 99 … … 104 104 // Sick LMS 511 105 105 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)); 108 108 QStringList list = information.split(":"); 109 109 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) 111 111 { 112 recording = param.getProperty("sicklms511_"+QString::number(num)+"_recording").toInt();112 recording = config.getProperty("sicklms511_"+QString::number(num)+"_recording").toInt(); 113 113 } 114 114
Note:
See TracChangeset
for help on using the changeset viewer.