Changeset 8541 in ntrip
- Timestamp:
- Nov 15, 2018, 11:14:49 AM (6 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/PPP/pppSatObs.cpp
r8496 r8541 62 62 // ------------------------------------------ 63 63 const string preferredAttrib = "CWPXI_"; 64 //const string preferredAttrib = "G:12&PWCSLXYN G:5&IQX R:12&PC R:3&IQX E:16&BCX E:578&IQX J:1&SLXCZ J:26&SLX J:5&IQX C:IQX I:ABCX S:1&C S:5&IQX"; 64 65 65 66 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { … … 106 107 // Compute Satellite Coordinates at Time of Transmission 107 108 // ----------------------------------------------------- 108 _xcSat.ReSize( 7); _xcSat = 0.0;109 _xcSat.ReSize(6); _xcSat = 0.0; 109 110 _vvSat.ReSize(3); _vvSat = 0.0; 110 111 bool totOK = false; 111 ColumnVector satPosOld( 7); satPosOld = 0.0;112 ColumnVector satPosOld(6); satPosOld = 0.0; 112 113 t_lc::type tLC = isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1; 113 114 double prange = obsValue(tLC); -
branches/BNC_2.12/src/PPP_SSR_I/pppClient.cpp
r8484 r8541 408 408 bncTime ToT = satData->tt - prange / t_CST::c - clkSat; 409 409 410 ColumnVector xc( 7);410 ColumnVector xc(6); 411 411 ColumnVector vv(3); 412 412 if (getSatPos(ToT, satData->prn, xc, vv) != success) { -
branches/BNC_2.12/src/RTCM/rtcm_utils.cpp
r8484 r8541 35 35 // -------------- 36 36 rho = 0.0; 37 ColumnVector xc( 7);37 ColumnVector xc(6); 38 38 ColumnVector vv(3); 39 39 eph->getCrd(bncTime(GPSWeek, GPSWeeks), xc, vv, false); -
branches/BNC_2.12/src/bncephuser.cpp
r8506 r8541 189 189 // Simple Check - check satellite radial distance 190 190 // ---------------------------------------------- 191 ColumnVector xc( 7);191 ColumnVector xc(6); 192 192 ColumnVector vv(3); 193 193 if (eph->getCrd(eph->TOC(), xc, vv, false) != success) { -
branches/BNC_2.12/src/combination/bnccomb.cpp
r8484 r8541 449 449 } 450 450 451 ColumnVector oldXC( 7);451 ColumnVector oldXC(6); 452 452 ColumnVector oldVV(3); 453 453 corr->_eph->getCrd(corr->_time, oldXC, oldVV, false); 454 454 455 ColumnVector newXC( 7);455 ColumnVector newXC(6); 456 456 ColumnVector newVV(3); 457 457 lastEph->getCrd(corr->_time, newXC, newVV, false); … … 688 688 const t_eph* eph = corr->_eph; 689 689 if (eph) { 690 ColumnVector xc( 7);690 ColumnVector xc(6); 691 691 ColumnVector vv(3); 692 692 eph->getCrd(_resTime, xc, vv, false); … … 740 740 clkCorrections.push_back(clkCorr); 741 741 742 ColumnVector xc( 7);742 ColumnVector xc(6); 743 743 ColumnVector vv(3); 744 744 corr->_eph->setClkCorr(dynamic_cast<const t_clkCorr*>(&clkCorr)); -
branches/BNC_2.12/src/ephemeris.cpp
r8497 r8541 65 65 << 900 << 1800 << 3600 << 7200 66 66 << 10800; 67 xc.ReSize( 7);67 xc.ReSize(6); 68 68 vv.ReSize(3); 69 69 if (position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()) != success) { … … 320 320 static const double gmGRS = 398.6005e12; 321 321 322 memset(xc, 0, 7*sizeof(double));322 memset(xc, 0, 6*sizeof(double)); 323 323 memset(vv, 0, 3*sizeof(double)); 324 324 … … 368 368 double tc = tt - _TOC; 369 369 xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc; 370 371 xc[4] = _clock_bias;372 xc[5] = _clock_drift;373 xc[6] = _clock_driftrate;374 370 375 371 // Velocity … … 402 398 xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 403 399 400 xc[4] = _clock_drift + _clock_driftrate*tc; 401 xc[5] = _clock_driftrate; 402 404 403 return success; 405 404 } … … 618 617 static const double nominalStep = 10.0; 619 618 620 memset(xc, 0, 7*sizeof(double));619 memset(xc, 0, 6*sizeof(double)); 621 620 memset(vv, 0, 3*sizeof(double)); 622 621 … … 655 654 xc[3] = -_tau + _gamma * dtClk; 656 655 657 xc[4] = -_tau; 658 xc[5] = _gamma; 659 xc[6] = 0.0; 656 xc[4] = _gamma; 657 xc[5] = 0.0; 660 658 661 659 return success; … … 922 920 static const double gmWGS = 398.6004418e12; 923 921 924 memset(xc, 0, 7*sizeof(double));922 memset(xc, 0, 6*sizeof(double)); 925 923 memset(vv, 0, 3*sizeof(double)); 926 924 … … 970 968 double tc = tt - _TOC; 971 969 xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc; 972 973 xc[4] = _clock_bias;974 xc[5] = _clock_drift;975 xc[6] = _clock_driftrate;976 970 977 971 // Velocity … … 1006 1000 //xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 1007 1001 1002 xc[4] = _clock_drift + _clock_driftrate*tc; 1003 xc[5] = _clock_driftrate; 1004 1008 1005 return success; 1009 1006 } … … 1317 1314 xc[3] = _agf0 + _agf1 * dt; 1318 1315 1319 xc[4] = _agf0; 1320 xc[5] = _agf1; 1321 xc[6] = 0.0; 1316 xc[4] = _agf1; 1317 xc[5] = 0.0; 1322 1318 1323 1319 return success; … … 1698 1694 xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc; 1699 1695 1700 xc[4] = _clock_bias;1701 xc[5] = _clock_drift;1702 xc[6] = _clock_driftrate;1703 1704 1696 // dotC = _clock_drift + _clock_driftrate*tc 1705 1697 // - 4.442807633e-10*_e*sqrt(a0)*cos(E) * dEdM * n; … … 1708 1700 // ----------------------- 1709 1701 // correspondent to BDS ICD and to SSR standard 1710 1702 xc[3] -= 4.442807633e-10 * _e * sqrt(a0) *sin(E); 1711 1703 // correspondent to IGS convention 1712 1704 // xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 1705 1706 xc[4] = _clock_drift + _clock_driftrate*tc; 1707 xc[5] = _clock_driftrate; 1713 1708 1714 1709 return success; -
branches/BNC_2.12/src/rinex/reqcanalyze.cpp
r8496 r8541 288 288 } 289 289 if (eph) { 290 ColumnVector xSat( 7);290 ColumnVector xSat(6); 291 291 ColumnVector vv(3); 292 292 if (eph->getCrd(_currEpo->tt, xSat, vv, false) == success) { … … 351 351 } 352 352 if (eph) { 353 ColumnVector xc( 7);353 ColumnVector xc(6); 354 354 ColumnVector vv(3); 355 355 if ( xyzSta.size() == 3 && (xyzSta[0] != 0.0 || xyzSta[1] != 0.0 || xyzSta[2] != 0.0) && … … 1101 1101 for (epoTime = startTime - interval; epoTime < endTime; 1102 1102 epoTime = epoTime + interval) { 1103 ColumnVector xc( 7);1103 ColumnVector xc(6); 1104 1104 ColumnVector vv(3); 1105 1105 if ( xyzSta.size() == 3 && (xyzSta[0] != 0.0 || xyzSta[1] != 0.0 || xyzSta[2] != 0.0) && -
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8509 r8541 337 337 ColumnVector rtnClkSig; // [m, m/s, m/s²] 338 338 t_prn prn; 339 339 340 340 QTextStream in(lines[ii].toAscii()); 341 341 … … 373 373 int number = key.mid(1, 2).toInt(); 374 374 int flags = 0; 375 375 376 if (sys == 'E') { // I/NAV 376 377 flags = 1; … … 503 504 } 504 505 else { 505 in >> numVal; 506 for (int ii = 0; ii < numVal; ii++) { 507 double dummy; 508 in >> dummy; 509 } 506 emit(newMessage(" RTNET format error: " 507 + lines[ii].toAscii(), false)); 508 qDebug() << "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str()) 509 + " " + QByteArray(epoTime.timestr().c_str()) + " " 510 + _casterID.toAscii(); 511 qDebug() << " RTNET format error: " + lines[ii].toAscii(); 510 512 } 511 513 } … … 544 546 if (sd) { 545 547 QString outLine; 546 processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC, rtnUra, 547 rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine); 548 t_irc irc = processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC, 549 rtnUra, rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine); 550 if (irc != success) { 551 continue; 552 } 548 553 } 549 554 … … 2259 2264 // 2260 2265 //////////////////////////////////////////////////////////////////////////// 2261 voidbncRtnetUploadCaster::processSatellite(const t_eph* eph, int GPSweek,2266 t_irc bncRtnetUploadCaster::processSatellite(const t_eph* eph, int GPSweek, 2262 2267 double GPSweeks, const QString& prn, const ColumnVector& rtnAPC, 2263 2268 double rtnUra, const ColumnVector& rtnClk, const ColumnVector& rtnVel, … … 2267 2272 // Broadcast Position and Velocity 2268 2273 // ------------------------------- 2269 ColumnVector xB( 7);2274 ColumnVector xB(6); 2270 2275 ColumnVector vB(3); 2271 eph->getCrd(bncTime(GPSweek, GPSweeks), xB, vB, false); 2276 t_irc irc = eph->getCrd(bncTime(GPSweek, GPSweeks), xB, vB, false); 2277 2278 if (irc != success) { 2279 return irc; 2280 } 2272 2281 2273 2282 // Precise Position 2274 2283 // ---------------- 2275 2284 ColumnVector xP = _CoM ? rtnCoM : rtnAPC; 2285 2286 if (xP.size() == 0) { 2287 return failure; 2288 } 2276 2289 2277 2290 double dc = 0.0; … … 2296 2309 // ---------------- 2297 2310 double dClkA0 = rtnClk(1) - (xB(4) - dc) * t_CST::c; 2298 double dClkA1 = 0.0; 2299 double dClkA2 = 0.0; 2300 if (rtnClk(2)) { 2301 dClkA0 = rtnClk(1) - (xB(5) - dc) * t_CST::c; 2302 dClkA1 = rtnClk(2) - xB(6) * t_CST::c; 2303 } 2304 if (rtnClk(3)) { 2305 dClkA2 = rtnClk(3) - xB(7) * t_CST::c; 2306 } 2311 double dClkA1 = rtnClk(2) - xB(5) * t_CST::c; 2312 double dClkA2 = rtnClk(3) - xB(6) * t_CST::c; 2307 2313 2308 2314 if (sd) { … … 2358 2364 _sp3->write(GPSweek, GPSweeks, prn, rtnCoM, clkRnx, rtnVel, clkRnxRate); 2359 2365 } 2366 return success; 2360 2367 } 2361 2368 -
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.h
r8484 r8541 29 29 virtual ~bncRtnetUploadCaster(); 30 30 private: 31 voidprocessSatellite(const t_eph* eph, int GPSweek,31 t_irc processSatellite(const t_eph* eph, int GPSweek, 32 32 double GPSweeks, const QString& prn, 33 33 const ColumnVector& rtnAPC,
Note:
See TracChangeset
for help on using the changeset viewer.