Changeset 862 in ntrip for trunk


Ignore:
Timestamp:
May 4, 2008, 7:38:12 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r858 r862  
    2323#include "bnsrinex.h"
    2424#include "bnssp3.h"
     25extern "C" {
     26#include "RTCM/clock_orbit_rtcm.h"
     27}
    2528
    2629using namespace std;
     
    363366  }
    364367  if (_outSocket) {
    365     _outSocket->write(line.toAscii());
    366     _outSocket->flush();
     368    struct ClockOrbit co;
     369    memset(&co, 0, sizeof(co));
     370    co.GPSEpochTime = (int)GPSweeks;
     371    co.ClockDataSupplied = 1;
     372    co.OrbitDataSupplied = 1;
     373    co.SatRefPoint       = POINT_CENTER;
     374    co.SatRefDatum       = DATUM_ITRF;
     375    co.NumberOfGPSSat    = 1;
     376
     377    struct ClockOrbit::SatData* sd = co.Sat;
     378    ///    sd->ID                    = prn;
     379    sd->IOD                   = int(ep->IODE);
     380    sd->Clock.DeltaA0         = dClk;
     381    sd->Orbit.DeltaRadial     = rsw(1);
     382    sd->Orbit.DeltaAlongTrack = rsw(2);
     383    sd->Orbit.DeltaCrossTrack = rsw(3);
     384
     385    char obuffer[CLOCKORBIT_BUFFERSIZE];
     386    int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     387    if (len > 0) {
     388      _outSocket->write(obuffer, len);
     389      _outSocket->flush();
     390    }
    367391  }
    368392  if (_rnx) {
  • trunk/BNS/bns.pro

    r850 r862  
    2323
    2424HEADERS =             bns.h   bnswindow.h   bnshlpdlg.h   bnshtml.h   \
    25           bnseph.h    bnsutils.h bnsrinex.h bnssp3.h bnsoutf.h
     25          bnseph.h    bnsutils.h bnsrinex.h bnssp3.h bnsoutf.h        \
     26          RTCM/clock_orbit_rtcm.h
    2627
    2728HEADERS += newmat/controlw.h newmat/include.h newmat/myexcept.h  \
     
    2930           newmat/newmatrc.h newmat/newmatrm.h newmat/precisio.h
    3031
    31 SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp \
    32           bnseph.cpp  bnsutils.cpp bnsrinex.cpp bnssp3.cpp bnsoutf.cpp
     32SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp  \
     33          bnseph.cpp  bnsutils.cpp bnsrinex.cpp bnssp3.cpp bnsoutf.cpp \
     34          RTCM/clock_orbit_rtcm.c
    3335
    3436SOURCES += newmat/bandmat.cpp newmat/cholesky.cpp newmat/evalue.cpp  \
Note: See TracChangeset for help on using the changeset viewer.