Changeset 8542 in ntrip for trunk/BNC/src
- Timestamp:
- Nov 15, 2018, 11:16:46 AM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_SSR_I/pppClient.cpp
r8483 r8542 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) { -
trunk/BNC/src/RTCM/rtcm_utils.cpp
r8483 r8542 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); -
trunk/BNC/src/bncephuser.cpp
r8505 r8542 188 188 // Simple Check - check satellite radial distance 189 189 // ---------------------------------------------- 190 ColumnVector xc( 7);190 ColumnVector xc(6); 191 191 ColumnVector vv(3); 192 192 if (eph->getCrd(eph->TOC(), xc, vv, false) != success) { -
trunk/BNC/src/combination/bnccomb.cpp
r8483 r8542 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)); -
trunk/BNC/src/ephemeris.cpp
r8489 r8542 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; … … 923 921 static const double gmWGS = 398.6004418e12; 924 922 925 memset(xc, 0, 7*sizeof(double));923 memset(xc, 0, 6*sizeof(double)); 926 924 memset(vv, 0, 3*sizeof(double)); 927 925 … … 971 969 double tc = tt - _TOC; 972 970 xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc; 973 974 xc[4] = _clock_bias;975 xc[5] = _clock_drift;976 xc[6] = _clock_driftrate;977 971 978 972 // Velocity … … 1007 1001 //xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 1008 1002 1003 xc[4] = _clock_drift + _clock_driftrate*tc; 1004 xc[5] = _clock_driftrate; 1005 1009 1006 return success; 1010 1007 } … … 1319 1316 xc[3] = _agf0 + _agf1 * dt; 1320 1317 1321 xc[4] = _agf0; 1322 xc[5] = _agf1; 1323 xc[6] = 0.0; 1318 xc[4] = _agf1; 1319 xc[5] = 0.0; 1324 1320 1325 1321 return success; … … 1673 1669 xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc; 1674 1670 1675 xc[4] = _clock_bias;1676 xc[5] = _clock_drift;1677 xc[6] = _clock_driftrate;1678 1679 1671 // dotC = _clock_drift + _clock_driftrate*tc 1680 1672 // - 4.442807633e-10*_e*sqrt(a0)*cos(E) * dEdM * n; … … 1687 1679 // xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c; 1688 1680 1681 xc[4] = _clock_drift + _clock_driftrate*tc; 1682 xc[5] = _clock_driftrate; 1689 1683 return success; 1690 1684 } -
trunk/BNC/src/rinex/reqcanalyze.cpp
r8495 r8542 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) && -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r8510 r8542 507 507 } 508 508 else { 509 in >> numVal; 510 for (int ii = 0; ii < numVal; ii++) { 511 double dummy; 512 in >> dummy; 513 } 509 emit(newMessage(" RTNET format error: " 510 + lines[ii].toLatin1(), false)); 511 qDebug() << "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str()) 512 + " " + QByteArray(epoTime.timestr().c_str()) + " " 513 + _casterID.toLatin1(); 514 qDebug() << " RTNET format error: " + lines[ii].toLatin1(); 514 515 } 515 516 } … … 549 550 if (sd) { 550 551 QString outLine; 551 processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC, rtnUra, 552 rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine); 552 t_irc irc = processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC, 553 rtnUra, rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine); 554 if (irc != success) { 555 continue; 556 } 553 557 } 554 558 … … 2264 2268 // 2265 2269 //////////////////////////////////////////////////////////////////////////// 2266 voidbncRtnetUploadCaster::processSatellite(const t_eph* eph, int GPSweek,2270 t_irc bncRtnetUploadCaster::processSatellite(const t_eph* eph, int GPSweek, 2267 2271 double GPSweeks, const QString& prn, const ColumnVector& rtnAPC, 2268 2272 double rtnUra, const ColumnVector& rtnClk, const ColumnVector& rtnVel, … … 2272 2276 // Broadcast Position and Velocity 2273 2277 // ------------------------------- 2274 ColumnVector xB( 7);2278 ColumnVector xB(6); 2275 2279 ColumnVector vB(3); 2276 eph->getCrd(bncTime(GPSweek, GPSweeks), xB, vB, false); 2280 t_irc irc = eph->getCrd(bncTime(GPSweek, GPSweeks), xB, vB, false); 2281 2282 if (irc != success) { 2283 return irc; 2284 } 2277 2285 2278 2286 // Precise Position 2279 2287 // ---------------- 2280 2288 ColumnVector xP = _CoM ? rtnCoM : rtnAPC; 2289 2290 if (xP.size() == 0) { 2291 return failure; 2292 } 2281 2293 2282 2294 double dc = 0.0; … … 2301 2313 // ---------------- 2302 2314 double dClkA0 = rtnClk(1) - (xB(4) - dc) * t_CST::c; 2303 double dClkA1 = 0.0; 2304 double dClkA2 = 0.0; 2305 if (rtnClk(2)) { 2306 dClkA0 = rtnClk(1) - (xB(5) - dc) * t_CST::c; 2307 dClkA1 = rtnClk(2) - xB(6) * t_CST::c; 2308 } 2309 if (rtnClk(3)) { 2310 dClkA2 = rtnClk(3) - xB(7) * t_CST::c; 2311 } 2315 double dClkA1 = rtnClk(2) - xB(5) * t_CST::c; 2316 double dClkA2 = rtnClk(3) - xB(6) * t_CST::c; 2312 2317 2313 2318 if (sd) { … … 2363 2368 _sp3->write(GPSweek, GPSweeks, prn, rtnCoM, clkRnx, rtnVel, clkRnxRate); 2364 2369 } 2370 return success; 2365 2371 } 2366 2372 -
trunk/BNC/src/upload/bncrtnetuploadcaster.h
r8483 r8542 30 30 virtual ~bncRtnetUploadCaster(); 31 31 private: 32 voidprocessSatellite(const t_eph* eph, int GPSweek,32 t_irc processSatellite(const t_eph* eph, int GPSweek, 33 33 double GPSweeks, const QString& prn, 34 34 const ColumnVector& rtnAPC,
Note:
See TracChangeset
for help on using the changeset viewer.