- Timestamp:
- May 4, 2008, 7:38:12 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r858 r862 23 23 #include "bnsrinex.h" 24 24 #include "bnssp3.h" 25 extern "C" { 26 #include "RTCM/clock_orbit_rtcm.h" 27 } 25 28 26 29 using namespace std; … … 363 366 } 364 367 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 } 367 391 } 368 392 if (_rnx) { -
trunk/BNS/bns.pro
r850 r862 23 23 24 24 HEADERS = 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 26 27 27 28 HEADERS += newmat/controlw.h newmat/include.h newmat/myexcept.h \ … … 29 30 newmat/newmatrc.h newmat/newmatrm.h newmat/precisio.h 30 31 31 SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp \ 32 bnseph.cpp bnsutils.cpp bnsrinex.cpp bnssp3.cpp bnsoutf.cpp 32 SOURCES = 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 33 35 34 36 SOURCES += newmat/bandmat.cpp newmat/cholesky.cpp newmat/evalue.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.