- Timestamp:
- Mar 29, 2018, 12:42:32 PM (7 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncoutf.cpp
r8204 r8320 152 152 baseName.replace("${GPSWD}", gpswd); 153 153 baseName.replace("${V3}" , QString("_U_%1%2").arg(yyyy).arg(doy)); 154 154 if (_extension.count(".") == 2) {_extension.replace(0,1,"_"); } 155 155 156 return _path + baseName + epoStr + _extension; 156 157 } -
trunk/BNC/src/pppRun.cpp
r8204 r8320 122 122 connect(BNC_CMB, SIGNAL(newClkCorrections(QList<t_clkCorr>)), 123 123 this, SLOT(slotNewClkCorrections(QList<t_clkCorr>)),conType); 124 124 125 125 connect(BNC_CORE, SIGNAL(providerIDChanged(QString)), 126 126 this, SLOT(slotProviderIDChanged(QString))); … … 140 140 _stopFlag = false; 141 141 142 QString roverName(_opt->_roverName.c_str()), fullRoverName("");142 QString roverName(_opt->_roverName.c_str()), ID9(""); 143 143 QString country; 144 144 QString monNum = "0"; … … 146 146 QString intr = "1 day"; 147 147 int sampl = 0; 148 QString distStr; 149 int num = 0; 150 int statIDlength = roverName.size() -1; 151 QString ID4 = roverName.left(4); 152 ID4 = ID4.toUpper(); 148 153 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 149 154 while (it.hasNext()) { 150 QStringList hlp = it.next().split(" "); 155 QString mp = it.next(); 156 if (mp.indexOf(roverName.left(statIDlength)) != -1) { 157 ++num; 158 } 159 QStringList hlp = mp.split(" "); 151 160 if (hlp.size() < 7) 152 161 continue; … … 155 164 } 156 165 } 157 fullRoverName = roverName.left(4) + 158 QString("%1").arg(monNum, 1, 10) + 159 QString("%1").arg(recNum, 1, 10) + 160 country; 166 167 if (num > 1) { 168 distStr = "." + roverName.right(1); 169 } 170 171 ID9 = ID4 + 172 QString("%1").arg(monNum, 1, 10) + 173 QString("%1").arg(recNum, 1, 10) + 174 country; 161 175 162 176 bool v3filenames = settings.value("PPP/v3filenames").toBool(); … … 171 185 } 172 186 if (v3filenames) { 173 logFileSkl = logFileSkl + fullRoverName + "${V3}"+ ".ppp";187 logFileSkl = logFileSkl + ID9 + "${V3}" + distStr + ".ppp"; 174 188 } 175 189 else { 176 logFileSkl = logFileSkl + roverName.left(4) + "${GPSWD}"+ ".ppp";190 logFileSkl = logFileSkl + ID4 + "${GPSWD}" + distStr + ".ppp"; 177 191 } 178 192 _logFile = new bncoutf(logFileSkl, intr, sampl); … … 189 203 } 190 204 if (v3filenames) { 191 nmeaFileSkl = nmeaFileSkl + fullRoverName + "${V3}"+ ".nmea";205 nmeaFileSkl = nmeaFileSkl + ID9 + "${V3}" + distStr + ".nmea"; 192 206 } 193 207 else { 194 nmeaFileSkl = nmeaFileSkl + roverName.left(4) + "${GPSWD}"+ ".nmea";208 nmeaFileSkl = nmeaFileSkl + ID4 + "${GPSWD}" + distStr + ".nmea"; 195 209 } 196 210 _nmeaFile = new bncoutf(nmeaFileSkl, intr, sampl); 197 211 } 198 199 212 QString snxtroFileSkl = settings.value("PPP/snxtroPath").toString(); 200 213 l = snxtroFileSkl.length(); … … 207 220 } 208 221 if (v3filenames) { 209 snxtroFileSkl = snxtroFileSkl + fullRoverName + "${V3}"+ ".tra";222 snxtroFileSkl = snxtroFileSkl + ID9 + "${V3}" + distStr + ".tra"; 210 223 } 211 224 else { 212 snxtroFileSkl = snxtroFileSkl + roverName.left(4) + "${GPSWD}"+ ".tro";225 snxtroFileSkl = snxtroFileSkl + ID4 + "${GPSWD}" + distStr + ".tro"; 213 226 } 214 227 sampl = settings.value("PPP/snxtroSampl").toInt();
Note:
See TracChangeset
for help on using the changeset viewer.