Changeset 10127 in ntrip for trunk/BNC/src/bncsp3.cpp
- Timestamp:
- Jul 20, 2023, 12:13:41 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsp3.cpp
r10123 r10127 78 78 if (_lastEpoTime.valid() && _sampl > 0) { 79 79 for (bncTime ep = _lastEpoTime +_sampl; ep < epoTime; ep = ep +_sampl) { 80 _out << " * " << ep.datestr(' ') << ' ' << ep.timestr(8, ' ') << endl;80 _out << "\n* " << ep.datestr(' ') << ' ' << ep.timestr(8, ' '); 81 81 } 82 82 } … … 84 84 // Print the new epoch 85 85 // ------------------- 86 _out << " * " << epoTime.datestr(' ') << ' ' << epoTime.timestr(8, ' ') << endl;86 _out << "\n* " << epoTime.datestr(' ') << ' ' << epoTime.timestr(8, ' '); 87 87 88 88 _lastEpoTime = epoTime; 89 89 } 90 90 91 _out << " P" << prn.toLatin1().data()91 _out << "\nP" << prn.toLatin1().data() 92 92 << setw(14) << setprecision(6) << xCoM(1) / 1000.0 // [km] 93 93 << setw(14) << setprecision(6) << xCoM(2) / 1000.0 // [km] 94 94 << setw(14) << setprecision(6) << xCoM(3) / 1000.0 // [km] 95 << setw(14) << setprecision(6) << sp3Clk * 1e6 // microseconds 96 << endl; 95 << setw(14) << setprecision(6) << sp3Clk * 1e6; // microseconds 97 96 98 97 if (sp3ClkRate) { 99 _out << " V" << prn.toLatin1().data()98 _out << "\nV" << prn.toLatin1().data() 100 99 << setw(14) << setprecision(6) << v(1) * 10.0 // [dm/s] 101 100 << setw(14) << setprecision(6) << v(2) * 10.0 // [dm/s] 102 101 << setw(14) << setprecision(6) << v(3) * 10.0 // [dm/s] 103 << setw(14) << setprecision(6) << sp3ClkRate * 1e2 // 10^⁻4 microseconds/sec 104 << endl; 102 << setw(14) << setprecision(6) << sp3ClkRate * 1e2; // 10^⁻4 microseconds/sec 105 103 } 106 104 return success; … … 212 210 istringstream in(_lastLine.substr(1).c_str()); 213 211 in >> sp3Sat->_prn >> sp3Sat->_xyz(1) >> sp3Sat->_xyz(2) >> sp3Sat->_xyz(3) >> sp3Sat->_clk; 214 215 if (sp3Sat->_xyz.NormFrobenius() == 0.0) { 212 sp3Sat->_xyz *= 1.e3; 213 214 // Simple Check - check satellite radial distance 215 double rr = sp3Sat->_xyz.NormFrobenius(); 216 const double MINDIST = 2.e7; 217 const double MAXDIST = 6.e7; 218 if (rr < MINDIST || rr > MAXDIST || std::isnan(rr)) { 216 219 delete sp3Sat; 217 220 continue; 218 221 } 219 222 220 sp3Sat->_xyz *= 1.e3;223 // Simple Check - clock valid 221 224 if (sp3Sat->_clk == 999999.999999) { 222 225 sp3Sat->_clkValid = false;
Note:
See TracChangeset
for help on using the changeset viewer.