Changeset 8541 in ntrip for branches/BNC_2.12/src/upload
- Timestamp:
- Nov 15, 2018, 11:14:49 AM (6 years ago)
- Location:
- branches/BNC_2.12/src/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.