Changeset 5855 in ntrip


Ignore:
Timestamp:
Aug 7, 2014, 1:19:43 PM (8 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncephuploadcaster.cpp

    r4813 r5855  
    1919#include "bncephuploadcaster.h"
    2020#include "bncsettings.h"
     21#include "RTCM3/ephEncoder.h"
    2122
    2223using namespace std;
     
    6667      t_eph* eph = it.value()->last;
    6768      unsigned char Array[80];
    68       int size = eph->RTCM3(Array);
     69      int size = 0;
     70      t_ephGPS* ephGPS = dynamic_cast<t_ephGPS*>(eph);
     71      t_ephGlo* ephGlo = dynamic_cast<t_ephGlo*>(eph);
     72      t_ephGal* ephGal = dynamic_cast<t_ephGal*>(eph);
     73      if (ephGPS) {
     74        size = t_ephEncoder::RTCM3(*ephGPS, Array);
     75      }
     76      else if (ephGlo) {
     77        size = t_ephEncoder::RTCM3(*ephGlo, Array);
     78      }
     79      else if (ephGal) {
     80        size = t_ephEncoder::RTCM3(*ephGal, Array);
     81      }
    6982      if (size > 0) {
    7083        outBuffer += QByteArray((char*) Array, size);
Note: See TracChangeset for help on using the changeset viewer.