Changeset 4959 in ntrip


Ignore:
Timestamp:
Feb 25, 2013, 5:15:21 PM (12 years ago)
Author:
stoecker
Message:

fix RINEX3 for old style RTCM3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinex.c

    r4958 r4959  
    622622            gnss->codetype[num][ce] = gnss->codetype[num][le] = "1C";
    623623          }
     624          if(!handle->info[RTCM3_MSM_GPS].type[ce])
     625          {
     626            handle->info[RTCM3_MSM_GPS].type[ce] =
     627            handle->info[RTCM3_MSM_GPS].type[le] =
     628            handle->info[RTCM3_MSM_GPS].type[se] = gnss->codetype[num][ce][1];
     629          }
    624630          GETBITS(l1range, 24);
    625631          GETBITSSIGN(i, 20);
     
    684690              gnss->codetype[num][ce] = gnss->codetype[num][le] = "2 ";
    685691            }
     692            if(!handle->info[RTCM3_MSM_GPS].type[ce])
     693            {
     694              handle->info[RTCM3_MSM_GPS].type[ce] =
     695              handle->info[RTCM3_MSM_GPS].type[le] =
     696              handle->info[RTCM3_MSM_GPS].type[se] = gnss->codetype[num][ce][1];
     697            }
    686698            GETBITSSIGN(i,14);
    687699            if((i&((1<<14)-1)) != 0x2000)
     
    812824            gnss->codetype[num][se] =
    813825            gnss->codetype[num][ce] = gnss->codetype[num][le] = "1C";
     826          }
     827          if(!handle->info[RTCM3_MSM_GLONASS].type[ce])
     828          {
     829            handle->info[RTCM3_MSM_GLONASS].type[ce] =
     830            handle->info[RTCM3_MSM_GLONASS].type[le] =
     831            handle->info[RTCM3_MSM_GLONASS].type[se] = gnss->codetype[num][ce][1];
    814832          }
    815833          GETBITS(l1range, 25)
     
    868886              gnss->codetype[num][se] =
    869887              gnss->codetype[num][ce] = gnss->codetype[num][le] = "2C";
     888            }
     889            if(!handle->info[RTCM3_MSM_GLONASS].type[ce])
     890            {
     891              handle->info[RTCM3_MSM_GLONASS].type[ce] =
     892              handle->info[RTCM3_MSM_GLONASS].type[le] =
     893              handle->info[RTCM3_MSM_GLONASS].type[se] = gnss->codetype[num][ce][1];
    870894            }
    871895            GETBITSSIGN(i,14)
Note: See TracChangeset for help on using the changeset viewer.