Changeset 3146 in ntrip


Ignore:
Timestamp:
Mar 25, 2011, 5:29:06 PM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r3145 r3146  
    861861t_irc t_ephGal::read(const QStringList& lines) {
    862862
     863  for (int ii = 1; ii <= lines.size(); ii++) {
     864    QTextStream in(lines.at(ii-1).toAscii());
     865
     866    if (ii == 1) {
     867      double  year, month, day, hour, minute, second;
     868      in >> _prn >> year >> month >> day >> hour >> minute >> second
     869         >> _clock_bias >> _clock_drift >> _clock_driftrate;
     870     
     871      if (year < 100) year += 2000;
     872     
     873      QDateTime* dateTime = new QDateTime(QDate(int(year), int(month), int(day)),
     874                                          QTime(int(hour), int(minute), int(second)), Qt::UTC);
     875
     876      // do not allow too new message (actually 12h) ! /JD
     877      QDateTime currTime = QDateTime::currentDateTime();
     878      if( dateTime->secsTo(currTime) < -3600*12 ){
     879         delete dateTime;
     880         return failure;
     881      }
     882       
     883      GPSweekFromDateAndTime(*dateTime, _GPSweek, _GPSweeks);
     884
     885      delete dateTime;
     886
     887      _TOC = _GPSweeks;
     888    }
     889    else if (ii == 2) {
     890      in >> _IODnav >> _Crs >> _Delta_n >> _M0;
     891    } 
     892    else if (ii == 3) {
     893      in >> _Cuc >> _e >> _Cus >> _sqrt_A;
     894    }
     895    else if (ii == 4) {
     896      in >> _TOE >> _Cic >> _OMEGA0 >> _Cis;
     897    } 
     898    else if (ii == 5) {
     899      in >> _i0 >> _Crc >> _omega >> _OMEGADOT;
     900    }
     901    else if (ii == 6) {
     902      double GPSweek, dummy;
     903      in >>  _IDOT >> dummy >> GPSweek;
     904    }
     905    else if (ii == 7) {
     906      in >> _SISA >> _E5aHS >> _BGD_1_5A >> _BGD_1_5B;
     907    }
     908    else if (ii == 8) {
     909      double TOW;
     910      in >> TOW;
     911    }
     912  }
    863913  return success;
    864914}
  • trunk/BNS/bnseph.h

    r3145 r3146  
    148148  double  _IDOT;             //  [rad/s]
    149149  double  _BGD_1_5A;         //  group delay [s]
     150  double  _BGD_1_5B;         //  group delay [s]
    150151  int     _SISA;             //  Signal In Space Accuracy
    151152  int     _E5aHS;            //  E5a Health Status
Note: See TracChangeset for help on using the changeset viewer.