- Timestamp:
- May 17, 2008, 3:47:55 PM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r918 r919 87 87 double GPSweeks; 88 88 currentGPSWeeks(GPSweek, GPSweeks); 89 if (GPSweeks > _co.GPSEpochTime + 86400.0) { 90 GPSweek += 1; 89 90 if (_co.NumberOfGPSSat > 0) { 91 if (GPSweeks > _co.GPSEpochTime + 86400.0) { 92 GPSweek += 1; 93 } 94 else if (GPSweeks < _co.GPSEpochTime - 86400.0) { 95 GPSweek -= 1; 96 } 97 GPSweeks = _co.GPSEpochTime; 91 98 } 92 else if (GPSweeks < _co.GPSEpochTime - 86400.0) { 93 GPSweek -= 1; 99 else { 100 double GPSdaysec = fmod(GPSweeks, 86400.0); 101 int weekDay = int((GPSweeks - GPSdaysec) / 86400.0); 102 if (GPSdaysec > _co.GLONASSEpochTime + 3600.0) { 103 weekDay += 1; 104 if (weekDay > 6) { 105 weekDay = 0; 106 GPSweek += 1; 107 } 108 } 109 else if (GPSdaysec < _co.GLONASSEpochTime - 3600.0) { 110 weekDay -= 1; 111 if (weekDay < 0) { 112 weekDay = 6; 113 GPSweek -= 1; 114 } 115 } 116 GPSweeks = weekDay * 86400.0 + _co.GLONASSEpochTime; 94 117 } 95 GPSweeks = _co.GPSEpochTime;96 118 97 119 for(int ii = 0; ii < _co.NumberOfGPSSat; ++ii) { 98 120 QString line; 99 line.sprintf("%d %.1f R%d %3d %8.3f %8.3f %8.3f %8.3f\n",121 line.sprintf("%d %.1f G%2.2d %3d %8.3f %8.3f %8.3f %8.3f\n", 100 122 GPSweek, GPSweeks, _co.Sat[ii].ID, _co.Sat[ii].IOD, 101 123 _co.Sat[ii].Clock.DeltaA0, … … 108 130 ii < CLOCKORBIT_NUMGPS + _co.NumberOfGLONASSSat; ++ii) { 109 131 QString line; 110 line.sprintf("%d %.1f R% d %3d %8.3f %8.3f %8.3f %8.3f\n",132 line.sprintf("%d %.1f R%2.2d %3d %8.3f %8.3f %8.3f %8.3f\n", 111 133 GPSweek, GPSweeks, _co.Sat[ii].ID, _co.Sat[ii].IOD, 112 134 _co.Sat[ii].Clock.DeltaA0, -
trunk/BNC/bncwindow.cpp
r841 r919 677 677 678 678 QMainWindow::closeEvent(event); 679 delete this;680 679 } 681 680
Note:
See TracChangeset
for help on using the changeset viewer.