Changeset 868 in ntrip for trunk/BNC/RTCM3/RTCM3coDecoder.cpp


Ignore:
Timestamp:
May 5, 2008, 2:03:36 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

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

    r866 r868  
    3939 * -----------------------------------------------------------------------*/
    4040
     41#include <stdio.h>
     42
    4143#include "RTCM3coDecoder.h"
    4244
     
    5658////////////////////////////////////////////////////////////////////////////
    5759t_irc RTCM3coDecoder::Decode(char* buffer, int bufLen) {
     60
     61  memset(&_co, 0, sizeof(_co));
     62  int irc = GetClockOrbitBias(&_co, &_bias, buffer, bufLen);
     63 
     64  printf("EPOCH %d %d %d\n", irc, _co.GPSEpochTime, _co.NumberOfGPSSat);
     65
     66  for(int ii = 0; ii < _co.NumberOfGPSSat; ++ii) {
     67    printf("%d G%d %d %f %f %f %f\n", _co.GPSEpochTime,
     68           _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0,
     69           _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack,
     70           _co.Sat[ii].Orbit.DeltaCrossTrack);
     71  }
     72
    5873  return success;
    5974}
Note: See TracChangeset for help on using the changeset viewer.