Changeset 2773 in ntrip


Ignore:
Timestamp:
Dec 12, 2010, 4:16:45 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r2772 r2773  
    263263  printEphHeader();
    264264
    265   galileoephemeris** ee = &_galileoEph[galileoeph->satellite-1];
    266 
    267   if ( *ee == 0                         ||
     265  int galIndex = galileoeph->satellite - 51;
     266  if (galIndex > PRN_GALILEO_END - PRN_GALILEO_START) {
     267    emit( newMessage("Wrong Galileo Satellite Number", true) );
     268    exit(1);
     269  }
     270
     271  galileoephemeris** ee = &_galileoEph[galIndex];
     272
     273  if ( *ee == 0                       ||
    268274       galileoeph->Week > (*ee)->Week ||
    269275       (galileoeph->Week == (*ee)->Week && galileoeph->TOC > (*ee)->TOC) ) {
Note: See TracChangeset for help on using the changeset viewer.