- Timestamp:
- Jun 21, 2011, 7:06:25 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r3312 r3313 959 959 // -------------- 960 960 if (irc == 0) { 961 findMaxRes( vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);961 findMaxRes(iPhase, vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase); 962 962 if (maxResCode > MAXRES_CODE_GPS) { 963 963 satDataGPS.remove(prnCode); … … 971 971 // ------------------ 972 972 if (irc == 0) { 973 findMaxRes( vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);973 findMaxRes(iPhase, vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase); 974 974 if (maxResCode > MAXRES_CODE_GAL) { 975 975 satDataGal.remove(prnCode); … … 986 986 // ------------------- 987 987 if (irc == 0) { 988 findMaxRes( vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase);988 findMaxRes(iPhase, vv,satDataGlo, prnCode, maxResCode, prnPhase, maxResPhase); 989 989 if (maxResPhase > MAXRES_PHASE_GLO) { 990 990 satDataGlo.remove(prnPhase); … … 998 998 // ------------------- 999 999 if (irc == 0) { 1000 findMaxRes( vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase);1000 findMaxRes(iPhase, vv,satDataGal, prnCode, maxResCode, prnPhase, maxResPhase); 1001 1001 if (maxResPhase > MAXRES_PHASE_GAL) { 1002 1002 satDataGal.remove(prnPhase); … … 1010 1010 // --------------- 1011 1011 if (irc == 0) { 1012 findMaxRes( vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase);1012 findMaxRes(iPhase, vv,satDataGPS, prnCode, maxResCode, prnPhase, maxResPhase); 1013 1013 if (maxResPhase > MAXRES_PHASE_GPS) { 1014 1014 satDataGPS.remove(prnPhase); … … 1264 1264 // 1265 1265 /////////////////////////////////////////////////////////////////////////// 1266 void bncModel::findMaxRes( const ColumnVector& vv,1266 void bncModel::findMaxRes(int iPhase, const ColumnVector& vv, 1267 1267 const QMap<QString, t_satData*>& satData, 1268 1268 QString& prnCode, double& maxResCode, … … 1276 1276 it.next(); 1277 1277 t_satData* satData = it.value(); 1278 if (satData->indexCode) { 1279 if (fabs(vv(satData->indexCode)) > maxResCode) { 1280 maxResCode = fabs(vv(satData->indexCode)); 1281 prnCode = satData->prn; 1282 } 1283 } 1284 if (satData->indexPhase) { 1285 if (fabs(vv(satData->indexPhase)) > maxResPhase) { 1286 maxResPhase = fabs(vv(satData->indexPhase)); 1287 prnPhase = satData->prn; 1278 if (iPhase == 0) { 1279 if (satData->indexCode) { 1280 if (fabs(vv(satData->indexCode)) > maxResCode) { 1281 maxResCode = fabs(vv(satData->indexCode)); 1282 prnCode = satData->prn; 1283 } 1284 } 1285 } 1286 else { 1287 if (satData->indexPhase) { 1288 if (fabs(vv(satData->indexPhase)) > maxResPhase) { 1289 maxResPhase = fabs(vv(satData->indexPhase)); 1290 prnPhase = satData->prn; 1291 } 1288 1292 } 1289 1293 } -
trunk/BNC/bncmodel.h
r3309 r3313 100 100 void printRes(int iPhase, const ColumnVector& vv, 101 101 std::ostringstream& str, t_satData* satData); 102 void findMaxRes( const ColumnVector& vv,102 void findMaxRes(int iPhase, const ColumnVector& vv, 103 103 const QMap<QString, t_satData*>& satData, 104 104 QString& prnCode, double& maxResCode,
Note:
See TracChangeset
for help on using the changeset viewer.