Changeset 4012 in ntrip for trunk/BNC/rinex


Ignore:
Timestamp:
Apr 22, 2012, 12:42:27 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/rnxnavfile.cpp

    r4011 r4012  
    287287////////////////////////////////////////////////////////////////////////////
    288288void t_rnxNavFile::writeEphV3(const t_eph* eph) {
    289 }
     289
     290  bncTime tt(eph->GPSweek(), eph->GPSweeks());
     291
     292  unsigned year, month, day, hour, min;
     293  double sec;
     294  tt.civil_date(year, month, day);
     295  tt.civil_time(hour, min, sec);
     296
     297  QString dateStr;
     298  QTextStream(&dateStr) << QString(" %1 %2 %3 %4 %5 %6")
     299    .arg(year,     4)
     300    .arg(month,    2, 10, QChar('0'))
     301    .arg(day,      2, 10, QChar('0'))
     302    .arg(hour,     2, 10, QChar('0'))
     303    .arg(min,      2, 10, QChar('0'))
     304    .arg(int(sec), 2, 10, QChar('0'));
     305
     306  *_stream << eph->prn() << dateStr << endl;
     307}
Note: See TracChangeset for help on using the changeset viewer.