Changeset 5855 in ntrip for trunk/BNC/src
- Timestamp:
- Aug 7, 2014, 1:19:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncephuploadcaster.cpp
r4813 r5855 19 19 #include "bncephuploadcaster.h" 20 20 #include "bncsettings.h" 21 #include "RTCM3/ephEncoder.h" 21 22 22 23 using namespace std; … … 66 67 t_eph* eph = it.value()->last; 67 68 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 } 69 82 if (size > 0) { 70 83 outBuffer += QByteArray((char*) Array, size);
Note:
See TracChangeset
for help on using the changeset viewer.