Changeset 7506 in ntrip for trunk/BNC/src/pppRun.cpp
- Timestamp:
- Oct 13, 2015, 3:19:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/pppRun.cpp
r7301 r7506 137 137 _stopFlag = false; 138 138 139 QString roverName(_opt->_roverName.c_str()); 140 141 QString logFileSkl = settings.value("PPP/logFilePPP").toString(); 139 QString roverName(_opt->_roverName.c_str()), fullRoverName(""); 140 QString country; 141 QString monNum = "0"; 142 QString recNum = "0"; 143 QString intr = "1 day"; 144 int sampl = 0; 145 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 146 while (it.hasNext()) { 147 QStringList hlp = it.next().split(" "); 148 if (hlp.size() < 7) 149 continue; 150 if (hlp.join(" ").indexOf(roverName, 0) != -1) { 151 country = hlp[2]; 152 } 153 } 154 fullRoverName = roverName.left(4) + 155 QString("%1").arg(monNum, 1, 10) + 156 QString("%1").arg(recNum, 1, 10) + 157 country; 158 159 bool v3filenames = settings.value("PPP/v3filenames").toBool(); 160 QString logFileSkl = settings.value("PPP/logPath").toString(); 142 161 if (logFileSkl.isEmpty()) { 143 162 _logFile = 0; 144 163 } 145 164 else { 146 if ( logFileSkl.indexOf("${STATION}") == -1) {147 logFileSkl = logFileSkl + "_" + roverName;165 if (v3filenames) { 166 logFileSkl = logFileSkl + fullRoverName + "${V3}" + ".ppp"; 148 167 } 149 168 else { 150 logFileSkl .replace("${STATION}", roverName);151 } 152 _logFile = new bncoutf(logFileSkl, "1 day", 0);153 } 154 155 QString nmeaFileSkl = settings.value("PPP/nmea File").toString();169 logFileSkl = logFileSkl + roverName.left(4) + "${GPSWD}" + ".ppp"; 170 } 171 _logFile = new bncoutf(logFileSkl, intr, sampl); 172 } 173 174 QString nmeaFileSkl = settings.value("PPP/nmeaPath").toString(); 156 175 if (nmeaFileSkl.isEmpty()) { 157 176 _nmeaFile = 0; 158 177 } 159 178 else { 160 if ( nmeaFileSkl.indexOf("${STATION}") == -1) {161 nmeaFileSkl = roverName + "_" + nmeaFileSkl;179 if (v3filenames) { 180 nmeaFileSkl = nmeaFileSkl + fullRoverName + "${V3}" + ".nmea"; 162 181 } 163 182 else { 164 nmeaFileSkl .replace("${STATION}", roverName);165 } 166 _nmeaFile = new bncoutf(nmeaFileSkl, "1 day", 0);167 } 168 169 QString snxtroFileSkl = settings.value("PPP/snxtro File").toString();183 nmeaFileSkl = nmeaFileSkl + roverName.left(4) + "${GPSWD}" + ".nmea"; 184 } 185 _nmeaFile = new bncoutf(nmeaFileSkl, intr, sampl); 186 } 187 188 QString snxtroFileSkl = settings.value("PPP/snxtroPath").toString(); 170 189 if (snxtroFileSkl.isEmpty()) { 171 190 _snxtroFile = 0; 172 191 } 173 192 else { 174 if ( snxtroFileSkl.indexOf("${STATION}") == -1) {175 snxtroFileSkl = snxtroFileSkl + "_" + roverName;193 if (v3filenames) { 194 snxtroFileSkl = snxtroFileSkl + fullRoverName + "${V3}" + ".tra"; 176 195 } 177 196 else { 178 snxtroFileSkl.replace("${STATION}", roverName.left(4)); 179 } 180 int samplSnxTro = settings.value("PPP/snxtroSampl").toInt(); 181 _snxtroFile = new bncSinexTro(_opt, snxtroFileSkl, "1 day", samplSnxTro); 197 snxtroFileSkl = snxtroFileSkl + roverName.left(4) + "${GPSWD}" + ".tro"; 198 } 199 sampl = settings.value("PPP/snxtroSampl").toInt(); 200 intr = settings.value("PPP/snxtroIntr").toString(); 201 _snxtroFile = new bncSinexTro(_opt, snxtroFileSkl, intr, sampl); 182 202 } 183 203 }
Note:
See TracChangeset
for help on using the changeset viewer.