- Timestamp:
- Aug 27, 2020, 3:34:22 PM (4 years ago)
- Location:
- branches/BNC_2.12/src/RTCM3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r9047 r9049 1619 1619 (id >= 1240 && id <= 1270) || 1620 1620 (id == 4076)) { 1621 RTCM3coDecoder::e_type type = RTCM3coDecoder::RTCMssr; 1621 if (!_coDecoders.contains(_staID.toLatin1())) { 1622 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID); 1623 } 1624 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()]; 1622 1625 if (id == 4076) { 1623 type = RTCM3coDecoder::IGSssr;1626 coDecoder->setSsrFormatType(RTCM3coDecoder::IGSssr); 1624 1627 } 1625 if (!_coDecoders.contains(_staID.toLatin1()))1626 _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID, type);1627 RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];1628 else { 1629 coDecoder->setSsrFormatType(RTCM3coDecoder::RTCMssr); 1630 } 1628 1631 if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize, 1629 1632 errmsg) == success) { -
branches/BNC_2.12/src/RTCM3/RTCM3coDecoder.cpp
r9036 r9049 53 53 // Constructor 54 54 //////////////////////////////////////////////////////////////////////////// 55 RTCM3coDecoder::RTCM3coDecoder(const QString& staID , const e_type type) {55 RTCM3coDecoder::RTCM3coDecoder(const QString& staID) { 56 56 57 57 _staID = staID; … … 97 97 _providerID[2] = -1; 98 98 99 _type = type;100 99 _ssrCorr = 0; 101 100 } -
branches/BNC_2.12/src/RTCM3/RTCM3coDecoder.h
r9037 r9049 37 37 public: 38 38 enum e_type {RTCMssr, IGSssr}; 39 RTCM3coDecoder(const QString& staID , const e_type type);39 RTCM3coDecoder(const QString& staID); 40 40 virtual ~RTCM3coDecoder(); 41 41 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); 42 virtual int corrGPSEpochTime() const {return int(_lastTime.gpssec());} 42 virtual int corrGPSEpochTime() const {return int(_lastTime.gpssec());} 43 virtual void setSsrFormatType(const e_type type) {_type = type;} 43 44 44 45 signals: … … 57 58 void reopen(); 58 59 void checkProviderID(); 59 std::string codeTypeToRnxType(char system, SsrCorr::CodeType type) const;60 60 61 61 std::ofstream* _out;
Note:
See TracChangeset
for help on using the changeset viewer.