Changeset 862 in ntrip for trunk/BNS/bns.cpp
- Timestamp:
- May 4, 2008, 7:38:12 PM (16 years ago)
- File:
-
- 1 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) {
Note:
See TracChangeset
for help on using the changeset viewer.