Ignore:
Timestamp:
Aug 25, 2020, 11:02:49 PM (4 years ago)
Author:
stuerze
Message:

some modification to allow encoding and decoding of SSR corrections in RTCM-SSR and IGS-SSR formats

File:
1 edited

Legend:

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

    r9011 r9025  
    16311631       * else. */
    16321632      if ((id >= 1057 && id <= 1068) ||
    1633           (id >= 1240 && id <= 1270) ||
    1634                   (id == 4076)) {
     1633            (id >= 1240 && id <= 1270) ||
     1634                      (id == 4076)) {
     1635        RTCM3coDecoder::e_type type = RTCM3coDecoder::e_type::RTCMssr;
     1636        if (id == 4076) {
     1637          type = RTCM3coDecoder::e_type::IGSssr;
     1638        }
    16351639        if (!_coDecoders.contains(_staID.toLatin1()))
    1636           _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID);
     1640          _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID, type);
    16371641        RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
    16381642        if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize,
     
    17191723uint32_t RTCM3Decoder::CRC24(long size, const unsigned char *buf) {
    17201724  uint32_t crc = 0;
    1721   int i;
    1722 
     1725  int ii;
    17231726  while (size--) {
    17241727    crc ^= (*buf++) << (16);
    1725     for (i = 0; i < 8; i++)
    1726         {
     1728    for (ii = 0; ii < 8; ii++) {
    17271729      crc <<= 1;
    17281730      if (crc & 0x1000000)
Note: See TracChangeset for help on using the changeset viewer.