Changeset 926 in ntrip


Ignore:
Timestamp:
May 25, 2008, 12:17:49 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r918 r926  
    388388}
    389389
     390// Glonass IOD
     391////////////////////////////////////////////////////////////////////////////
     392int t_ephGlo::IOD() const {
     393  ////  return int(fmod(_GPSweeks,86400.0)) / 600;
     394  unsigned int tb  = int(fmod(_GPSweeks,86400.0)) * 1000; // msec of day
     395
     396  // 5 LSBs of iod are equal to 5 LSBs of tb, remaining bits are zero
     397  unsigned int iod = tb << 3;
     398  return (iod >> 3);
     399}
  • trunk/BNS/bnseph.h

    r918 r926  
    3737  virtual void position(int GPSweek, double GPSweeks, ColumnVector& xc,
    3838                        ColumnVector& vv) const;
    39   virtual int  IOD() const {return int(fmod(_GPSweeks,86400.0)) / 600;}
     39  virtual int  IOD() const;
    4040 private:
    4141  static ColumnVector glo_deriv(double /* tt */, const ColumnVector& xv);
Note: See TracChangeset for help on using the changeset viewer.