Changeset 8927 in ntrip
- Timestamp:
- Apr 30, 2020, 8:47:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r8925 r8927 295 295 } 296 296 } 297 298 297 else if ( iLine == 7 ) { 299 298 if ( readDbl(line, pos[0], fieldLen, _TOT) ) { … … 301 300 return; 302 301 } 303 // Rinex 3.04: fitInterval is specified as time period for GPS, 304 // as flag for QZSS and not valid for IRNSS 305 double fitIntervalRnx; 306 readDbl(line, pos[1], fieldLen, fitIntervalRnx); 307 if (type() == t_eph::QZSS) { 308 _fitInterval = fitIntervalFromFlag(fitIntervalRnx, _IODC, t_eph::QZSS); 302 // fitInterval is not valid for IRNSS 303 if (type() != t_eph::IRNSS) { 304 // Rinex 3.04: 305 double fitIntervalRnx; 306 readDbl(line, pos[1], fieldLen, fitIntervalRnx); 307 if (type() == t_eph::GPS) { // specified as time period for GPS 308 _fitInterval = fitIntervalRnx; 309 } else if (type() == t_eph::QZSS) { // specified as flag for QZSS 310 _fitInterval = fitIntervalFromFlag(fitIntervalRnx, _IODC, t_eph::QZSS); 311 } 309 312 } 310 313 } … … 476 479 tot = 0.0; 477 480 } 478 if (type() == t_eph::IRNSS) { 481 // fitInterval 482 if (type() == t_eph::IRNSS) { // not valid for IRNSS 479 483 out << QString(fmt) 480 484 .arg(tot, 19, 'e', 12) … … 484 488 } 485 489 else { 486 // Rinex 3.04: fitInterval is specified as flag for QZSS 487 // but as time period for GPS 488 double fitIntervalRnx = _fitInterval; // GPS 489 if (type() == t_eph::QZSS) { 490 // Rinex 3.04: 491 double fitIntervalRnx = _fitInterval; // specified as time period in hours for GPS 492 if (type() == t_eph::QZSS) { // specified as flag for QZSS 490 493 (_fitInterval == 2.0) ? fitIntervalRnx = 0.0 : fitIntervalRnx = 1.0; 491 494 }
Note:
See TracChangeset
for help on using the changeset viewer.