Changeset 523 in ntrip


Ignore:
Timestamp:
Oct 18, 2007, 3:11:12 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/rtcm3torinex.c

    r512 r523  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.24 2007/10/08 13:29:45 stoecker Exp $
     3  $Id: rtcm3torinex.c,v 1.5 2007/10/17 06:12:00 mervart Exp $
    44  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@alberding.eu>
    55
     
    5151
    5252/* CVS revision and version */
    53 static char revisionstr[] = "$Revision: 1.24 $";
     53static char revisionstr[] = "$Revision: 1.5 $";
    5454
    5555#ifndef COMPILEDATE
     
    236236}
    237237
    238 static void updatetime(int *week, int *tow, int tk, int fixnumleap)
     238void updatetime(int *week, int *tow, int tk, int fixnumleap)
    239239{
    240240  int y,m,d,k,l, nul;
     
    776776};
    777777
    778 static void converttime(struct converttimeinfo *c, int week, int tow)
     778void converttime(struct converttimeinfo *c, int week, int tow)
    779779{
    780780  int i, k, doy, j; /* temporary variables */
     
    15341534
    15351535#ifndef NO_RTCM3_MAIN
    1536 static char datestr[]     = "$Date: 2007/10/08 13:29:45 $";
     1536static char datestr[]     = "$Date: 2007/10/17 06:12:00 $";
    15371537
    15381538/* The string, which is send as agent in HTTP request */
  • trunk/BNC/bncapp.cpp

    r522 r523  
    4848
    4949using namespace std;
     50
     51struct converttimeinfo {
     52  int second;    /* seconds of GPS time [0..59] */
     53  int minute;    /* minutes of GPS time [0..59] */
     54  int hour;      /* hour of GPS time [0..24] */
     55  int day;       /* day of GPS time [1..28..30(31)*/
     56  int month;     /* month of GPS time [1..12]*/
     57  int year;      /* year of GPS time [1980..] */
     58};
     59
     60extern "C" {
     61  void converttime(struct converttimeinfo *c, int week, int tow);
     62  void updatetime(int *week, int *tow, int tk, int fixnumleap);
     63}
     64
    5065
    5166// Constructor
     
    256271////////////////////////////////////////////////////////////////////////////
    257272void bncApp::printGlonassEph(glonassephemeris* ep) {
     273
    258274  if (_ephStream) {
    259     *_ephStream << "GLONASS: "  << ep->almanac_number << endl;
     275
     276    int w = ep->GPSWeek, tow = ep->GPSTOW, i;
     277    struct converttimeinfo cti;
     278
     279    updatetime(&w, &tow, ep->tb*1000, 1);
     280    converttime(&cti, w, tow);
     281
    260282    _ephStream->flush();
    261283  }
Note: See TracChangeset for help on using the changeset viewer.