Changeset 3450 in ntrip for trunk/BNC/combination
- Timestamp:
- Sep 22, 2011, 5:17:39 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3449 r3450 30 30 #include "bnctides.h" 31 31 32 const int moduloTime = 10; 33 34 const double sig0_offAC = 1000.0; 35 const double sig0_offACSat = 100.0; 36 const double sigP_offACSat = 0.0; 37 const double sig0_clkSat = 100.0; 32 using namespace std; 38 33 39 34 const int MAXPRN_GPS = 32; 40 41 using namespace std;42 35 43 36 // Constructor … … 53 46 54 47 if (type == offAC) { 55 epoSpec = true; 56 sig0 = sig0_offAC; 57 sigP = sig0; 48 sig_0 = 1000.0; 49 sig_P = 1000.0; 58 50 } 59 51 else if (type == offACSat) { 60 epoSpec = false; 61 sig0 = sig0_offACSat; 62 sigP = sigP_offACSat; 52 sig_0 = 100.0; 53 sig_P = 0.0; 63 54 } 64 55 else if (type == clkSat) { 65 epoSpec = true; 66 sig0 = sig0_clkSat; 67 sigP = sig0; 56 sig_0 = 100.0; 57 sig_P = 100.0; 68 58 } 69 59 } … … 166 156 for (int iPar = 1; iPar <= _params.size(); iPar++) { 167 157 cmbParam* pp = _params[iPar-1]; 168 _QQ(iPar,iPar) = pp->sig 0 * pp->sig0;158 _QQ(iPar,iPar) = pp->sig_0 * pp->sig_0; 169 159 } 170 160 … … 243 233 // Check Modulo Time 244 234 // ----------------- 235 const int moduloTime = 10; 245 236 if (int(newCorr->tt.gpssec()) % moduloTime != 0.0) { 246 237 delete newCorr; … … 389 380 for (int iPar = 1; iPar <= _params.size(); iPar++) { 390 381 cmbParam* pp = _params[iPar-1]; 391 if (pp->epoSpec) { 392 pp->xx = 0.0; 393 _QQ.Row(iPar) = 0.0; 394 _QQ.Column(iPar) = 0.0; 395 _QQ(iPar,iPar) = pp->sig0 * pp->sig0; 396 } 397 else { 398 _QQ(iPar,iPar) += pp->sigP * pp->sigP; 399 } 382 _QQ(iPar,iPar) += pp->sig_P * pp->sig_P; 400 383 x0(iPar) = pp->xx; 401 384 } … … 486 469 QQ_sav.Row(iPar) = 0.0; 487 470 QQ_sav.Column(iPar) = 0.0; 488 QQ_sav(iPar,iPar) = pp->sig 0 * pp->sig0;471 QQ_sav(iPar,iPar) = pp->sig_0 * pp->sig_0; 489 472 } 490 473 } -
trunk/BNC/combination/bnccomb.h
r3448 r3450 23 23 QString prn; 24 24 double xx; 25 double sig0; 26 double sigP; 27 bool epoSpec; 25 double sig_0; 26 double sig_P; 28 27 }; 29 28
Note:
See TracChangeset
for help on using the changeset viewer.