Changeset 8542 in ntrip for trunk/BNC/src/upload
- Timestamp:
- Nov 15, 2018, 11:16:46 AM (6 years ago)
- Location:
- trunk/BNC/src/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.