Changeset 8484 in ntrip for branches/BNC_2.12/src/bncsp3.cpp
- Timestamp:
- Sep 18, 2018, 12:50:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncsp3.cpp
r8089 r8484 64 64 //////////////////////////////////////////////////////////////////////////// 65 65 t_irc bncSP3::write(int GPSweek, double GPSweeks, const QString& prn, 66 const ColumnVector& xCoM, double sp3Clk) { 66 const ColumnVector& xCoM, double sp3Clk, 67 const ColumnVector& v, double sp3ClkRate) { 67 68 68 69 if (reopen(GPSweek, GPSweeks) == success) { … … 87 88 } 88 89 89 _out << "P" << prn.toAscii().data() 90 << setw(14) << setprecision(6) << xCoM(1) / 1000.0 91 << setw(14) << setprecision(6) << xCoM(2) / 1000.0 92 << setw(14) << setprecision(6) << xCoM(3) / 1000.0 93 << setw(14) << setprecision(6) << sp3Clk * 1e6 << endl; 94 90 _out << "P" << prn.toLatin1().data() 91 << setw(14) << setprecision(6) << xCoM(1) / 1000.0 // [km] 92 << setw(14) << setprecision(6) << xCoM(2) / 1000.0 // [km] 93 << setw(14) << setprecision(6) << xCoM(3) / 1000.0 // [km] 94 << setw(14) << setprecision(6) << sp3Clk * 1e6 // microseconds 95 << endl; 96 97 if (sp3ClkRate) { 98 _out << "V" << prn.toLatin1().data() 99 << setw(14) << setprecision(6) << v(1) * 10.0 // [dm/s] 100 << setw(14) << setprecision(6) << v(2) * 10.0 // [dm/s] 101 << setw(14) << setprecision(6) << v(3) * 10.0 // [dm/s] 102 << setw(14) << setprecision(6) << sp3ClkRate * 1e2 // 10^⁻4 microseconds/sec 103 << endl; 104 } 95 105 return success; 96 106 }
Note:
See TracChangeset
for help on using the changeset viewer.