Changeset 2285 in ntrip


Ignore:
Timestamp:
Feb 9, 2010, 11:34:51 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/ephemeris.cpp

    r2263 r2285  
    1010#include "bncutils.h"
    1111#include "timeutils.h"
     12#include "bnctime.h"
    1213
    1314using namespace std;
     
    233234int t_ephGlo::IOD() const {
    234235
    235   bool old = true;
     236  bool old = false;
    236237
    237238  if (old) { // 5 LSBs of iod are equal to 5 LSBs of tb
     
    242243  }
    243244  else     { 
    244     return int(fmod(_tki, 3600)) / 30;
     245    bncTime tGPS(_GPSweek, _GPSweeks);
     246    int hlpWeek = _GPSweek;
     247    int hlpSec  = int(_GPSweeks);
     248    int hlpMsec = int(_GPSweeks * 1000);
     249    updatetime(&hlpWeek, &hlpSec, hlpMsec, 0);
     250    bncTime tHlp(hlpWeek, hlpSec);
     251    double diffSec = tGPS - tHlp;
     252    bncTime tMoscow = tGPS + diffSec;
     253    return int(tMoscow.daysec() / 900);
    245254  }
    246255}
  • trunk/BNC/bncmodel.cpp

    r2283 r2285  
    6565const double   sig_amb_0_GPS    =  100.0;
    6666const double   sig_amb_0_GLO    = 1000.0;
    67 const double   sig_P3           =    1.0;
     67const double   sig_P3           =    3.0;
    6868const double   sig_L3_GPS       =    0.01;
    6969const double   sig_L3_GLO       =    0.01;
  • trunk/BNS/bnseph.cpp

    r2284 r2285  
    707707int t_ephGlo::IOD() const {
    708708
    709   bool old = true;
     709  bool old = false;
    710710
    711711  if (old) { // 5 LSBs of iod are equal to 5 LSBs of tb
Note: See TracChangeset for help on using the changeset viewer.