Changeset 2076 in ntrip
- Timestamp:
- Dec 5, 2009, 12:27:50 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r2073 r2076 109 109 _xx.ReSize(nPar); 110 110 _xx = 0.0; 111 112 _static = true; 111 113 } 112 114 … … 234 236 void bncModel::predict() { 235 237 236 _params[0]->x0 = _xcBanc(1); 237 _params[1]->x0 = _xcBanc(2); 238 _params[2]->x0 = _xcBanc(3); 238 // Coordinates 239 // ----------- 240 if (_static) { 241 if (x() == 0.0 && y() == 0.0 && z() == 0.0) { 242 _params[0]->x0 = _xcBanc(1); 243 _params[1]->x0 = _xcBanc(2); 244 _params[2]->x0 = _xcBanc(3); 245 } 246 else { 247 _params[0]->x0 += _params[0]->xx; 248 _params[1]->x0 += _params[1]->xx; 249 _params[2]->x0 += _params[2]->xx; 250 } 251 } 252 else { 253 _params[0]->x0 = _xcBanc(1); 254 _params[1]->x0 = _xcBanc(2); 255 _params[2]->x0 = _xcBanc(3); 256 257 _QQ(1,1) += sig_crd_p * sig_crd_p; 258 _QQ(2,2) += sig_crd_p * sig_crd_p; 259 _QQ(3,3) += sig_crd_p * sig_crd_p; 260 } 261 262 // Receiver Clocks 263 // --------------- 239 264 _params[3]->x0 = _xcBanc(4); 240 241 _params[0]->xx = 0.0;242 _params[1]->xx = 0.0;243 _params[2]->xx = 0.0;244 _params[3]->xx = 0.0;245 246 _QQ(1,1) += sig_crd_p * sig_crd_p;247 _QQ(2,2) += sig_crd_p * sig_crd_p;248 _QQ(3,3) += sig_crd_p * sig_crd_p;249 250 265 for (int iPar = 1; iPar <= _params.size(); iPar++) { 251 266 _QQ(iPar, 4) = 0.0; … … 253 268 _QQ(4,4) = sig_clk_0 * sig_clk_0; 254 269 270 // Nullify the Solution Vector 271 // --------------------------- 272 for (int iPar = 1; iPar <= _params.size(); iPar++) { 273 _params[iPar-1]->xx = 0.0; 274 } 255 275 _xx = 0.0; 256 276 } -
trunk/BNC/bncmodel.h
r2073 r2076 72 72 ColumnVector _xcBanc; 73 73 ColumnVector _ellBanc; 74 bool _static; 74 75 }; 75 76
Note:
See TracChangeset
for help on using the changeset viewer.