Changeset 8484 in ntrip for branches/BNC_2.12/src/bncclockrinex.cpp
- Timestamp:
- Sep 18, 2018, 12:50:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncclockrinex.cpp
r8089 r8484 41 41 //////////////////////////////////////////////////////////////////////////// 42 42 t_irc bncClockRinex::write(int GPSweek, double GPSweeks, const QString& prn, 43 double sp3Clk) { 43 double clkRnx, double clkRnxRate, double clkRnxAcc, 44 double clkRnxSig, double clkRnxRateSig, double clkRnxAccSig) { 44 45 45 46 if (reopen(GPSweek, GPSweeks) == success) { … … 48 49 double sec = fmod(GPSweeks, 60.0); 49 50 50 _out << "AS " << prn.toAscii().data() 51 << datTim.toString(" yyyy MM dd hh mm").toAscii().data() 51 int numValues = 1; 52 if (clkRnxSig && clkRnxRate && clkRnxRateSig) { 53 numValues += 3; 54 } 55 if (clkRnxAcc && clkRnxAccSig) { 56 numValues += 2; 57 } 58 59 _out << "AS " << prn.toLatin1().data() 60 << datTim.toString(" yyyy MM dd hh mm").toLatin1().data() 52 61 << fixed << setw(10) << setprecision(6) << sec 53 << " 1 " << fortranFormat(sp3Clk, 19, 12).toAscii().data() << endl; 62 << " " << numValues << " " 63 << fortranFormat(clkRnx, 19, 12).toLatin1().data(); 54 64 65 if (numValues >=2) { 66 _out << " " << fortranFormat(clkRnxSig, 19, 12).toLatin1().data() << endl; 67 } 68 if (numValues == 4) { 69 _out << fortranFormat(clkRnxRate, 19, 12).toLatin1().data() << " "; 70 _out << fortranFormat(clkRnxRateSig, 19, 12).toLatin1().data() << " "; 71 } 72 if (numValues == 6) { 73 _out << fortranFormat(clkRnxAcc, 19, 12).toLatin1().data() << " "; 74 _out << " " << fortranFormat(clkRnxAccSig, 19, 12).toLatin1().data(); 75 } 76 _out << endl; 55 77 return success; 56 78 }
Note:
See TracChangeset
for help on using the changeset viewer.