Changeset 918 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- May 17, 2008, 3:10:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r908 r918 42 42 43 43 #include "RTCM3coDecoder.h" 44 #include "bncutils.h" 44 45 45 46 using namespace std; … … 82 83 bytesused > 0) { 83 84 reopen(); 85 86 int GPSweek; 87 double GPSweeks; 88 currentGPSWeeks(GPSweek, GPSweeks); 89 if (GPSweeks > _co.GPSEpochTime + 86400.0) { 90 GPSweek += 1; 91 } 92 else if (GPSweeks < _co.GPSEpochTime - 86400.0) { 93 GPSweek -= 1; 94 } 95 GPSweeks = _co.GPSEpochTime; 96 84 97 for(int ii = 0; ii < _co.NumberOfGPSSat; ++ii) { 85 98 QString line; 86 line.sprintf("%d G%d %d %f %f %f %f\n", _co.GPSEpochTime, 87 _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0, 88 _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack, 99 line.sprintf("%d %.1f R%d %3d %8.3f %8.3f %8.3f %8.3f\n", 100 GPSweek, GPSweeks, _co.Sat[ii].ID, _co.Sat[ii].IOD, 101 _co.Sat[ii].Clock.DeltaA0, 102 _co.Sat[ii].Orbit.DeltaRadial, 103 _co.Sat[ii].Orbit.DeltaAlongTrack, 89 104 _co.Sat[ii].Orbit.DeltaCrossTrack); 90 105 *_out << line.toAscii().data(); … … 93 108 ii < CLOCKORBIT_NUMGPS + _co.NumberOfGLONASSSat; ++ii) { 94 109 QString line; 95 line.sprintf("%d R%d %d %f %f %f %f\n", _co.GLONASSEpochTime, 96 _co.Sat[ii].ID, _co.Sat[ii].IOD, _co.Sat[ii].Clock.DeltaA0, 97 _co.Sat[ii].Orbit.DeltaRadial, _co.Sat[ii].Orbit.DeltaAlongTrack, 110 line.sprintf("%d %.1f R%d %3d %8.3f %8.3f %8.3f %8.3f\n", 111 GPSweek, GPSweeks, _co.Sat[ii].ID, _co.Sat[ii].IOD, 112 _co.Sat[ii].Clock.DeltaA0, 113 _co.Sat[ii].Orbit.DeltaRadial, 114 _co.Sat[ii].Orbit.DeltaAlongTrack, 98 115 _co.Sat[ii].Orbit.DeltaCrossTrack); 99 116 *_out << line.toAscii().data();
Note:
See TracChangeset
for help on using the changeset viewer.