Ignore:
Timestamp:
Mar 29, 2011, 8:52:57 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncuploadcaster.cpp

    r3185 r3186  
    262262// Encode and Upload Clocks, Orbits, and Biases
    263263////////////////////////////////////////////////////////////////////////////
    264 void bncUploadCaster::uploadClockOrbitBias(const QStringList& lines,
    265                            const QMap<QString, bncEphUser::t_ephPair*>& ephMap,
    266                            int year, int month, int day,
    267                            int GPSweek, double GPSweeks) {
    268 
     264void bncUploadCaster::uploadClockOrbitBias(const bncTime& epoTime,
     265                            const QMap<QString, bncEphUser::t_ephPair*>& ephMap,
     266                            const QStringList& lines) {
    269267  this->open();
     268
     269  unsigned year, month, day;
     270  epoTime.civil_date(year, month, day);
    270271 
    271272  struct ClockOrbit co;
    272273  memset(&co, 0, sizeof(co));
    273   co.GPSEpochTime      = (int)GPSweeks;
    274   co.GLONASSEpochTime  = (int)fmod(GPSweeks, 86400.0)
     274  co.GPSEpochTime      = static_cast<int>(epoTime.gpssec());
     275  co.GLONASSEpochTime  = static_cast<int>(fmod(epoTime.gpssec(), 86400.0))
    275276                       + 3 * 3600 - gnumleap(year, month, day);
    276277  co.ClockDataSupplied = 1;
     
    280281  struct Bias bias;
    281282  memset(&bias, 0, sizeof(bias));
    282   bias.GPSEpochTime      = (int)GPSweeks;
    283   bias.GLONASSEpochTime  = (int)fmod(GPSweeks, 86400.0)
    284                          + 3 * 3600 - gnumleap(year, month, day);
     283  bias.GPSEpochTime      = co.GPSEpochTime;
     284  bias.GLONASSEpochTime  = co.GLONASSEpochTime;
    285285 
    286286  for (int ii = 0; ii < lines.size(); ii++) {
     
    335335      if (sd) {
    336336        QString outLine;
    337         processSatellite(ep, GPSweek, GPSweeks, prn, xx, sd, outLine);
     337        processSatellite(ep, epoTime.gpsw(), epoTime.gpssec(), prn, xx, sd, outLine);
    338338        if (_outFile) {
    339           _outFile->write(GPSweek, GPSweeks, outLine);
     339          _outFile->write(epoTime.gpsw(), epoTime.gpssec(), outLine);
    340340        }
    341341      }
Note: See TracChangeset for help on using the changeset viewer.