- Timestamp:
- Nov 18, 2007, 1:17:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r575 r577 194 194 glonassephemeris** ee = &_glonassEph[glonasseph->almanac_number-1]; 195 195 196 if ( *ee == 0 || 197 glonasseph->GPSWeek > (*ee)->GPSWeek || 198 glonasseph->GPSTOW > (*ee)->GPSTOW ) { 196 struct converttimeinfo ctiOld; 197 struct converttimeinfo ctiNew; 198 if (*ee != 0) { 199 int ww = (*ee)->GPSWeek; 200 int tow = (*ee)->GPSTOW; 201 updatetime(&ww, &tow, (*ee)->tb*1000, 1); 202 converttime(&ctiOld, ww, tow); 203 204 ww = glonasseph->GPSWeek; 205 tow = glonasseph->GPSTOW; 206 updatetime(&ww, &tow, glonasseph->tb*1000, 1); 207 converttime(&ctiNew, ww, tow); 208 } 209 210 if ( *ee == 0 || 211 ctiOld.second != ctiNew.second || 212 ctiOld.minute != ctiNew.minute || 213 ctiOld.hour != ctiNew.hour || 214 ctiOld.day != ctiNew.day || 215 ctiOld.month != ctiNew.month || 216 ctiOld.year != ctiNew.year ) { 217 199 218 delete *ee; 200 219 *ee = glonasseph;
Note:
See TracChangeset
for help on using the changeset viewer.