Changeset 1733 in ntrip


Ignore:
Timestamp:
Mar 6, 2009, 9:33:54 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1726 r1733  
    396396          }
    397397     
    398           // Clocks without corrections
    399           // --------------------------
    400           if ( _caster.at(ic)->beClocks() ) {
    401             xx(4) -= xx(5) / 299792458.0;
    402             xx(5) = 0.0;
    403           }
    404 
    405398          if (ep != 0) {
    406399            struct ClockOrbit::SatData* sd = 0;
     
    415408            if (sd) {
    416409              QString outLine;
    417               processSatellite(oldEph, ic, _caster.at(ic)->crdTrafo(), ep,
     410              processSatellite(oldEph, ic, _caster.at(ic)->crdTrafo(),
     411                               _caster.at(ic)->beClocks(), ep,
    418412                               GPSweek, GPSweeks, prn, xx, sd, outLine);
    419413              _caster.at(ic)->printAscii(outLine);
     
    439433//
    440434////////////////////////////////////////////////////////////////////////////
    441 void t_bns::processSatellite(int oldEph, int iCaster, bool trafo, t_eph* ep,
    442                              int GPSweek, double GPSweeks, const QString& prn,
     435void t_bns::processSatellite(int oldEph, int iCaster, bool trafo,
     436                             bool beClocks, t_eph* ep, int GPSweek,
     437                             double GPSweeks, const QString& prn,
    443438                             const ColumnVector& xx,
    444439                             struct ClockOrbit::SatData* sd,
     
    455450  }
    456451
    457   ColumnVector dx   = xyz - xB.Rows(1,3);
    458 
    459   double       dClk = (xx(4) - xB(4)) * 299792458.0;
     452  ColumnVector dx = xyz - xB.Rows(1,3);
     453
    460454  ColumnVector rsw(3);
    461 
    462455  XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw);
     456
     457  double dClk;
     458  if (beClocks) {
     459    dClk = (xx(4) - xB(4)) * 299792458.0 - xx(5);
     460  }
     461  else {
     462    dClk = (xx(4) - xB(4)) * 299792458.0;
     463  }
    463464
    464465  if (sd) {
     
    526527  rMat(3,3) = 1.0;
    527528
    528 
    529529  xyz = sc * rMat * xyz + dx;
    530530}
  • trunk/BNS/bns.h

    r1258 r1733  
    6060  void openCaster();
    6161  void readEpoch();
    62   void processSatellite(int oldEph, int iCaster, bool trafo, t_eph* ep,
    63                         int GPSweek, double GPSweeks, const QString& prn,
    64                         const ColumnVector& xx, struct ClockOrbit::SatData* sd,
    65                         QString& outLine);
     62  void processSatellite(int oldEph, int iCaster, bool trafo, bool beClocks,
     63                        t_eph* ep, int GPSweek, double GPSweeks,
     64                        const QString& prn, const ColumnVector& xx,
     65                        struct ClockOrbit::SatData* sd, QString& outLine);
    6666  void crdTrafo(int GPSWeek, ColumnVector& xyz);
    6767
Note: See TracChangeset for help on using the changeset viewer.