Changeset 5553 in ntrip


Ignore:
Timestamp:
Nov 19, 2013, 3:41:34 PM (10 years ago)
Author:
stoecker
Message:

fixed header in the middle

File:
1 edited

Legend:

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

    r5535 r5553  
    25882588      else if (r == 1 || r == 2)
    25892589      {
    2590         int i, j, o, nh=0;
     2590        int i, j, o, nh=0, hl=2;
    25912591        char newheader[512];
    25922592        struct converttimeinfo cti;
     
    26192619        {
    26202620          nh = HandleObsHeader(Parser, newheader, sizeof(newheader), 0);
     2621          for(i = 0; i < nh; ++i)
     2622          {
     2623            if(newheader[i] == '\n')
     2624              ++hl;
     2625          }
    26212626        }
    26222627        if(Parser->rinex3)
    26232628        {
     2629          if(nh)
     2630          {
     2631            RTCM3Text("> %04d %02d %02d %02d %02d%11.7f  4%3d\n",
     2632            cti.year, cti.month, cti.day, cti.hour, cti.minute, cti.second
     2633            + fmod(Parser->Data.timeofweek/1000.0,1.0), hl);
     2634            RTCM3Text("%s\n                             "
     2635            "                               END OF HEADER\n", newheader);
     2636          }
    26242637          RTCM3Text("> %04d %02d %02d %02d %02d%11.7f  %d%3d\n",
    26252638          cti.year, cti.month, cti.day, cti.hour, cti.minute, cti.second
    2626           + fmod(Parser->Data.timeofweek/1000.0,1.0), nh ? 4 : 0,
     2639          + fmod(Parser->Data.timeofweek/1000.0,1.0), 0,
    26272640          Parser->Data.numsats);
    2628           if(nh)
    2629           {
    2630             RTCM3Text("%s\n                             "
    2631             "                               END OF HEADER\n", newheader);
    2632           }
    26332641          for(i = 0; i < Parser->Data.numsats; ++i)
    26342642          {
Note: See TracChangeset for help on using the changeset viewer.