Changeset 873 in ntrip


Ignore:
Timestamp:
May 6, 2008, 10:23:13 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r872 r873  
    324324   
    325325      for (int ii = 1; ii <= numSat; ii++) {
    326         line = _clkSocket->readLine();
    327      
    328         QTextStream in(line);
    329      
     326
    330327        QString      prn;
    331328        ColumnVector xx(4);
    332      
    333         in >> prn >> xx(1) >> xx(2) >> xx(3) >> xx(4);
    334         xx(4) *= 1e-6;
    335 
    336         gpsEph* ep   = 0;
    337         if ( _ephList.contains(prn) ) {
    338           t_ephPair* pair = _ephList[prn];
    339           if (oldEph == 1) {
    340             ep = pair->oldEph;
     329        gpsEph*      ep = 0;
     330
     331        if (oldEph == 0) {
     332          line = _clkSocket->readLine();
     333          QTextStream in(line);
     334          in >> prn;
     335          if ( _ephList.contains(prn) ) {
     336            in >> xx(1) >> xx(2) >> xx(3) >> xx(4); xx(4) *= 1e-6;
     337            t_ephPair* pair = _ephList[prn];
     338            pair->xx = xx;
     339            ep = pair->eph;
    341340          }
    342           else {
    343             ep = pair->eph;
     341        }
     342        else {
     343          if ( _ephList.contains(prn) ) {
     344            t_ephPair* pair = _ephList[prn];
     345            prn = pair->eph->prn;
     346            xx  = pair->xx;
     347            ep  = pair->oldEph;
    344348          }
    345349        }
  • trunk/BNS/bns.h

    r872 r873  
    2020    eph    = 0;
    2121    oldEph = 0;
     22    xx.ReSize(4);
    2223  }
    2324
     
    2728  }
    2829
     30  ColumnVector xx;
    2931  gpsEph* eph;
    3032  gpsEph* oldEph;
Note: See TracChangeset for help on using the changeset viewer.