Changeset 7570 in ntrip
- Timestamp:
- Nov 20, 2015, 2:47:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncclockrinex.cpp
r5451 r7570 12 12 * Created: 29-Mar-2011 13 13 * 14 * Changes: 14 * Changes: 15 15 * 16 16 * -----------------------------------------------------------------------*/ … … 21 21 #include "bncclockrinex.h" 22 22 #include "bncsettings.h" 23 #include "bncversion.h" 23 24 24 25 using namespace std; … … 26 27 // Constructor 27 28 //////////////////////////////////////////////////////////////////////////// 28 bncClockRinex::bncClockRinex(const QString& sklFileName, const QString& intr, 29 int sampl) 29 bncClockRinex::bncClockRinex(const QString& sklFileName, const QString& intr, 30 int sampl) 30 31 : bncoutf(sklFileName, intr, sampl) { 31 32 bncSettings settings; … … 39 40 // Write One Epoch 40 41 //////////////////////////////////////////////////////////////////////////// 41 t_irc bncClockRinex::write(int GPSweek, double GPSweeks, const QString& prn, 42 t_irc bncClockRinex::write(int GPSweek, double GPSweeks, const QString& prn, 42 43 double sp3Clk) { 43 44 … … 46 47 QDateTime datTim = dateAndTimeFromGPSweek(GPSweek, GPSweeks); 47 48 double sec = fmod(GPSweeks, 60.0); 48 49 49 50 _out << "AS " << prn.toAscii().data() 50 51 << datTim.toString(" yyyy MM dd hh mm").toAscii().data() 51 << fixed << setw(10) << setprecision(6) << sec 52 << fixed << setw(10) << setprecision(6) << sec 52 53 << " 1 " << fortranFormat(sp3Clk, 19, 12).toAscii().data() << endl; 53 54 … … 66 67 << "RINEX VERSION / TYPE" << endl; 67 68 68 _out << "BNC " 69 70 _out << "BNC v" << BNCVERSION << " " 69 71 << datTim.toString("yyyyMMdd hhmmss").leftJustified(20, ' ', true).toAscii().data() 70 72 << "PGM / RUN BY / DATE" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.