Changeset 3438 in ntrip for trunk/BNC/combination
- Timestamp:
- Sep 22, 2011, 10:15:34 AM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3437 r3438 30 30 #include "bnctides.h" 31 31 32 const int moduloTime = 10; 33 34 const double sig0_offAC = 1000.0; 35 const double sigP_offAC = 1000.0; 36 const double sig0_offACSat = 100.0; 37 const double sigP_offACSat = 0.0; 38 const double sig0_clkSat = 100.0; 39 const double sigP_clkSat = 100.0; 40 41 const int MAXPRN_GPS = 32; 42 32 43 using namespace std; 33 34 const int MAXPRN_GPS = 32;35 44 36 45 // Constructor … … 46 55 47 56 if (type == offAC) { 48 sig_0 = 1000.0;49 sig_P = 1000.0;57 sig_0 = sig0_offAC; 58 sig_P = sigP_offAC; 50 59 } 51 60 else if (type == offACSat) { 52 sig_0 = 100.0;53 sig_P = 0.0;61 sig_0 = sig0_offACSat; 62 sig_P = sigP_offACSat; 54 63 } 55 64 else if (type == clkSat) { 56 sig_0 = 100.0;57 sig_P = 100.0;65 sig_0 = sig0_clkSat; 66 sig_P = sigP_clkSat; 58 67 } 59 68 } … … 233 242 // Check Modulo Time 234 243 // ----------------- 235 const int moduloTime = 10;236 244 if (int(newCorr->tt.gpssec()) % moduloTime != 0.0) { 237 245 delete newCorr; … … 268 276 } 269 277 270 // Remember Last Correction Time271 // -----------------------------272 if (!_lastCorrTime.valid() || _lastCorrTime < newCorr->tt) {273 _lastCorrTime = newCorr->tt;274 }275 276 278 // Process previous Epoch(s) 277 279 // ------------------------- 278 const double waitTime = 20.0; // wait 20 seconds279 280 QListIterator<bncTime> itTime(_buffer.keys()); 280 281 while (itTime.hasNext()) { 281 282 bncTime epoTime = itTime.next(); 282 if (epoTime < _lastCorrTime - waitTime) {283 if (epoTime < newCorr->tt - moduloTime) { 283 284 _resTime = epoTime; 284 285 processEpoch(); -
trunk/BNC/combination/bnccomb.h
r3436 r3438 79 79 80 80 QList<cmbAC*> _ACs; 81 bncTime _lastCorrTime;82 81 bncTime _resTime; 83 82 QVector<cmbParam*> _params;
Note:
See TracChangeset
for help on using the changeset viewer.