Changeset 800 in ntrip


Ignore:
Timestamp:
Apr 8, 2008, 5:56:18 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r799 r800  
    1616
    1717#include <iostream>
     18#include <newmatio.h>
    1819
    1920#include "bns.h"
     
    237238  satellitePosition(GPSweeks, ep, xB(1), xB(2), xB(3), xB(4));
    238239
    239   cout << GPSweek << " " << GPSweeks << " "
    240        << xx(1) << " " << xx(2) << " " << xx(3) << " " <<  xx(4) << " "
    241        << xB(1) << " " << xB(2) << " " << xB(3) << " " <<  xB(4) << endl;
    242 }
     240  ColumnVector dx = xx - xB;
     241  dx(4) *= 299792458.0;
     242
     243  cout << GPSweek << " " << GPSweeks << " " << ep->prn.toAscii().data() << " "
     244       << setprecision(3) << dx.t();
     245}
  • trunk/BNS/bnseph.cpp

    r797 r800  
    104104      }
    105105
    106       int     year, month, day, hour, minute, second;
     106      double  year, month, day, hour, minute, second;
    107107      in >> year >> month >> day >> hour >> minute >> second
    108108         >> ep->clock_bias >> ep->clock_drift >> ep->clock_driftrate;
     
    112112      QDateTime dateTime(QDate(year,month,day), QTime(hour, minute, second),
    113113                         Qt::UTC);
    114       double toc;
    115       GPSweekFromDateAndTime(dateTime, ep->GPSweek, toc);
    116       ep->TOC = int(floor(toc+0.5));
     114      int week;
     115      GPSweekFromDateAndTime(dateTime, week, ep->TOC);
     116      ep->GPSweek = week;
    117117    }
    118118    else if (ii == 2) {
     
    129129    }
    130130    else if (ii == 6) {
    131       double dd;
    132       int    GPSweek;
    133       int    ii;
    134       in >>  ep->IDOT >> dd >> GPSweek >> ii;
     131      in >>  ep->IDOT;
    135132    }
    136133    else if (ii == 7) {
    137       double hlp;
    138       double health;
    139       in >>  hlp >> health >> ep->TGD >> ep->IODC;
     134      double hlp, health;
     135      in >> hlp >> health >> ep->TGD >> ep->IODC;
    140136    }
    141137    else if (ii == 8) {
  • trunk/BNS/bnseph.h

    r778 r800  
    88 public:
    99  QString prn;
    10   int    GPSweek;         
    11   int    TOW;              //  [s]   
    12   int    TOC;              //  [s]   
    13   int    TOE;              //  [s]   
    14   int    IODE;             
    15   int    IODC;             
     10  double GPSweek;         
     11  double TOW;              //  [s]   
     12  double TOC;              //  [s]   
     13  double TOE;              //  [s]   
     14  double IODE;             
     15  double IODC;             
    1616
    1717  double clock_bias;       //  [s]   
Note: See TracChangeset for help on using the changeset viewer.