Changeset 523 in ntrip for trunk/BNC/bncapp.cpp
- Timestamp:
- Oct 18, 2007, 3:11:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r522 r523 48 48 49 49 using namespace std; 50 51 struct converttimeinfo { 52 int second; /* seconds of GPS time [0..59] */ 53 int minute; /* minutes of GPS time [0..59] */ 54 int hour; /* hour of GPS time [0..24] */ 55 int day; /* day of GPS time [1..28..30(31)*/ 56 int month; /* month of GPS time [1..12]*/ 57 int year; /* year of GPS time [1980..] */ 58 }; 59 60 extern "C" { 61 void converttime(struct converttimeinfo *c, int week, int tow); 62 void updatetime(int *week, int *tow, int tk, int fixnumleap); 63 } 64 50 65 51 66 // Constructor … … 256 271 //////////////////////////////////////////////////////////////////////////// 257 272 void bncApp::printGlonassEph(glonassephemeris* ep) { 273 258 274 if (_ephStream) { 259 *_ephStream << "GLONASS: " << ep->almanac_number << endl; 275 276 int w = ep->GPSWeek, tow = ep->GPSTOW, i; 277 struct converttimeinfo cti; 278 279 updatetime(&w, &tow, ep->tb*1000, 1); 280 converttime(&cti, w, tow); 281 260 282 _ephStream->flush(); 261 283 }
Note:
See TracChangeset
for help on using the changeset viewer.