Changeset 918 in ntrip for trunk/BNC/RTCM3


Ignore:
Timestamp:
May 17, 2008, 3:10:05 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

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

    r908 r918  
    4242
    4343#include "RTCM3coDecoder.h"
     44#include "bncutils.h"
    4445
    4546using namespace std;
     
    8283              bytesused > 0) {
    8384      reopen();
     85
     86      int    GPSweek;
     87      double GPSweeks;
     88      currentGPSWeeks(GPSweek, GPSweeks);
     89      if      (GPSweeks > _co.GPSEpochTime + 86400.0) {
     90        GPSweek += 1;
     91      }
     92      else if (GPSweeks < _co.GPSEpochTime - 86400.0) {
     93        GPSweek -= 1;
     94      }
     95      GPSweeks = _co.GPSEpochTime;
     96
    8497      for(int ii = 0; ii < _co.NumberOfGPSSat; ++ii) {
    8598        QString line;
    86         line.sprintf("%d G%d %d %f %f %f %f\n", _co.GPSEpochTime,
    87                _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0,
    88                _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack,
     99        line.sprintf("%d %.1f R%d   %3d   %8.3f   %8.3f %8.3f %8.3f\n",
     100               GPSweek, GPSweeks, _co.Sat[ii].ID, _co.Sat[ii].IOD,
     101               _co.Sat[ii].Clock.DeltaA0,
     102               _co.Sat[ii].Orbit.DeltaRadial,
     103               _co.Sat[ii].Orbit.DeltaAlongTrack,
    89104               _co.Sat[ii].Orbit.DeltaCrossTrack);
    90105        *_out << line.toAscii().data();
     
    93108          ii < CLOCKORBIT_NUMGPS + _co.NumberOfGLONASSSat; ++ii) {
    94109        QString line;
    95         line.sprintf("%d R%d %d %f %f %f %f\n", _co.GLONASSEpochTime,
    96                _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0,
    97                _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack,
     110        line.sprintf("%d %.1f R%d   %3d   %8.3f   %8.3f %8.3f %8.3f\n",
     111               GPSweek, GPSweeks, _co.Sat[ii].ID, _co.Sat[ii].IOD,
     112               _co.Sat[ii].Clock.DeltaA0,
     113               _co.Sat[ii].Orbit.DeltaRadial,
     114               _co.Sat[ii].Orbit.DeltaAlongTrack,
    98115               _co.Sat[ii].Orbit.DeltaCrossTrack);
    99116        *_out << line.toAscii().data();
Note: See TracChangeset for help on using the changeset viewer.