Changeset 8473 in ntrip for branches/BNC_2.12


Ignore:
Timestamp:
Sep 5, 2018, 1:32:48 PM (6 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp

    r8471 r8473  
    974974    eph._prn.set('G', i);
    975975    GETBITS(week, 10)
    976     week += 1024;
    977976    GETBITS(i, 4)
    978977    eph._ura = accuracyFromIndex(i, eph.type());
     
    10031002    t.set(i * 1000);
    10041003    eph._TOEweek = t.gpsw();
     1004    int numOfRollOvers = int(floor(t.gpsw()/1024.0));
     1005    week += (numOfRollOvers * 1024);
    10051006    /* week from HOW, differs from TOC, TOE week, we use adapted value instead */
    10061007    if (eph._TOEweek > week + 1 || eph._TOEweek < week - 1) /* invalid week */
     
    11621163    GETBITS(eph._L2Codes, 2)
    11631164    GETBITS(week, 10)
    1164     week += 1024;
     1165    int numOfRollOvers = int(floor(t.gpsw()/1024.0));
     1166    week += (numOfRollOvers * 1024);
    11651167    /* week from HOW, differs from TOC, TOE week, we use adapted value instead */
    11661168    if (eph._TOEweek > week + 1 || eph._TOEweek < week - 1) /* invalid week */
Note: See TracChangeset for help on using the changeset viewer.