Changeset 3400 in ntrip
- Timestamp:
- Sep 1, 2011, 5:55:28 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncmodel.cpp ¶
r3399 r3400 1152 1152 // 1153 1153 /////////////////////////////////////////////////////////////////////////// 1154 void bncModel::printRes(int iPhase, const ColumnVector& vv, 1155 ostringstream& str, t_satData* satData) { 1154 QByteArray bncModel::printRes(int iPhase, const ColumnVector& vv, 1155 const QMap<QString, t_satData*>& satDataMap) { 1156 1156 1157 Tracer tracer("bncModel::printRes"); 1157 1158 1158 if (satData->obsIndex != 0) { 1159 str << _time.timestr(1) 1160 << " RES " << satData->prn.toAscii().data() 1161 << (iPhase ? " L3 " : " P3 ") 1162 << setw(9) << setprecision(4) << vv(satData->obsIndex) << endl; 1163 } 1159 ostringstream str; 1160 str.setf(ios::fixed); 1161 1162 QMapIterator<QString, t_satData*> it(satDataMap); 1163 while (it.hasNext()) { 1164 it.next(); 1165 t_satData* satData = it.value(); 1166 if (satData->obsIndex != 0) { 1167 str << _time.timestr(1) 1168 << " RES " << satData->prn.toAscii().data() 1169 << (iPhase ? " L3 " : " P3 ") 1170 << setw(9) << setprecision(4) << vv(satData->obsIndex) << endl; 1171 } 1172 } 1173 1174 return QByteArray(str.str().c_str()); 1164 1175 } 1165 1176 … … 1236 1247 continue; 1237 1248 } 1249 1250 QByteArray strResCode; 1251 QByteArray strResPhase; 1238 1252 1239 1253 // First update using code observations, then phase observations … … 1279 1293 ColumnVector vv = ll - AA * dx; 1280 1294 1295 // Print Residuals 1296 // --------------- 1297 if (iPhase == 0) { 1298 strResCode = printRes(iPhase, vv, epoData->satData); 1299 } 1300 else { 1301 strResPhase = printRes(iPhase, vv, epoData->satData); 1302 } 1303 1281 1304 // Check the residuals 1282 1305 // ------------------- … … 1308 1331 } 1309 1332 1310 // Print Residuals 1311 // --------------- 1312 ostringstream str; 1313 str.setf(ios::fixed); 1314 1315 QMapIterator<QString, t_satData*> it(epoData->satData); 1316 while (it.hasNext()) { 1317 it.next(); 1318 t_satData* satData = it.value(); 1319 if (iPhase == 1 || satData->system() != 'R') { 1320 printRes(iPhase, vv, str, satData); 1321 } 1322 } 1323 _log += str.str().c_str(); 1333 _log += strResCode + strResPhase; 1324 1334 1325 1335 return success; -
TabularUnified trunk/BNC/bncmodel.h ¶
r3386 r3400 100 100 void addObs(int iPhase, unsigned& iObs, t_satData* satData, 101 101 Matrix& AA, ColumnVector& ll, DiagonalMatrix& PP); 102 voidprintRes(int iPhase, const ColumnVector& vv,103 std::ostringstream& str, t_satData*satData);102 QByteArray printRes(int iPhase, const ColumnVector& vv, 103 const QMap<QString, t_satData*>& satDataMap); 104 104 void findMaxRes(const ColumnVector& vv, 105 105 const QMap<QString, t_satData*>& satData,
Note:
See TracChangeset
for help on using the changeset viewer.