Ignore:
Timestamp:
May 26, 2014, 5:09:47 PM (10 years ago)
Author:
stoecker
Message:

update due to RTCM-SSR fixes

File:
1 edited

Legend:

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

    r5580 r5665  
    149149    memcpy(&co_sav, &_co, sizeof(co_sav)); // save state
    150150
    151     GCOB_RETURN irc = GetClockOrbitBias(&_co, &_bias, _buffer.data(),
     151    GCOB_RETURN irc = GetSSR(&_co, &_bias, 0, 0, _buffer.data(),
    152152                                        _buffer.size(), &bytesused);
    153153
     
    167167
    168168      if ( (irc == GCOBR_OK          || irc == GCOBR_MESSAGEFOLLOWS ) &&
    169            (_co.NumberOfGPSSat   > 0 || _co.NumberOfGLONASSSat   > 0 ||
    170             _bias.NumberOfGPSSat > 0 || _bias.NumberOfGLONASSSat > 0) ) {
     169           (_co.NumberOfSat[CLOCKORBIT_SATGPS]   > 0 || _co.NumberOfSat[CLOCKORBIT_SATGLONASS]   > 0 ||
     170            _bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ) {
    171171
    172172        reopen(_fileNameSkl, _fileName, _out);
     
    180180        // Correction Epoch from GPSEpochTime
    181181        // ----------------------------------
    182         if (_co.NumberOfGPSSat > 0 || _bias.NumberOfGPSSat > 0) {
    183           int GPSEpochTime = (_co.NumberOfGPSSat > 0) ?
    184                              _co.GPSEpochTime : _bias.GPSEpochTime;
     182        if (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGPS] > 0) {
     183          int GPSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) ?
     184                             _co.EpochTime[CLOCKORBIT_SATGPS] : _bias.EpochTime[CLOCKORBIT_SATGPS];
    185185          if      (GPSweeksHlp > GPSEpochTime + 86400.0) {
    186186            GPSweek += 1;
     
    194194        // Correction Epoch from Glonass Epoch
    195195        // -----------------------------------
    196         else if (_co.NumberOfGLONASSSat > 0 || _bias.NumberOfGLONASSSat > 0){
    197           int GLONASSEpochTime = (_co.NumberOfGLONASSSat > 0) ?
    198                               _co.GLONASSEpochTime : _bias.GLONASSEpochTime;
     196        else if (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0 || _bias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0){
     197          int GLONASSEpochTime = (_co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) ?
     198                              _co.EpochTime[CLOCKORBIT_SATGLONASS] : _bias.EpochTime[CLOCKORBIT_SATGLONASS];
    199199
    200200          // Second of day (GPS time) from Glonass Epoch
     
    282282QStringList RTCM3coDecoder::corrsToASCIIlines(int GPSweek, double GPSweeks,
    283283                                              const ClockOrbit& co,
    284                                               const Bias* bias) {
     284                                              const CodeBias* bias) {
    285285
    286286  QStringList retLines;
     
    288288  // Loop over all satellites (GPS and Glonass)
    289289  // ------------------------------------------
    290   if (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) {
     290  if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0 || co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    291291    QString line1;
    292292    line1.sprintf("! Orbits/Clocks: %d GPS %d Glonass",
    293                   co.NumberOfGPSSat, co.NumberOfGLONASSSat);
     293                  co.NumberOfSat[CLOCKORBIT_SATGPS], co.NumberOfSat[CLOCKORBIT_SATGLONASS]);
    294294    retLines << line1;
    295295  }
    296   for (int ii = 0; ii < CLOCKORBIT_NUMGPS+co.NumberOfGLONASSSat; ii++) {
     296  for (int ii = 0; ii < CLOCKORBIT_NUMGPS+co.NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) {
    297297    char sysCh = ' ';
    298     if      (ii < co.NumberOfGPSSat) {
     298    if      (ii < co.NumberOfSat[CLOCKORBIT_SATGPS]) {
    299299      sysCh = 'G';
    300300    }
     
    385385  // ------------------------------------------
    386386  if (bias) {
    387     if (bias->NumberOfGPSSat > 0 || bias->NumberOfGLONASSSat > 0) {
     387    if (bias->NumberOfSat[CLOCKORBIT_SATGPS] > 0 || bias->NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    388388      QString line1;
    389389      line1.sprintf("! Biases: %d GPS %d Glonass",
    390                     bias->NumberOfGPSSat, bias->NumberOfGLONASSSat);
     390                    bias->NumberOfSat[CLOCKORBIT_SATGPS], bias->NumberOfSat[CLOCKORBIT_SATGLONASS]);
    391391      retLines << line1;
    392392    }
    393     for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias->NumberOfGLONASSSat; ii++) {
     393    for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias->NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) {
    394394      char sysCh = ' ';
    395395      int messageType;
    396       if      (ii < bias->NumberOfGPSSat) {
     396      if      (ii < bias->NumberOfSat[CLOCKORBIT_SATGPS]) {
    397397        sysCh = 'G';
    398398        messageType = BTYPE_GPS;
Note: See TracChangeset for help on using the changeset viewer.