Changeset 2884 in ntrip for trunk/BNC/bncantex.cpp


Ignore:
Timestamp:
Jan 26, 2011, 11:50:25 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncantex.cpp

    r2883 r2884  
    103103      t_frqMap* newFrqMap = 0;
    104104      if      (line.indexOf("TYPE / SERIAL NO") == 60) {
    105 
     105        if (line.indexOf("BLACK I") == 0 ||
     106            line.indexOf("GLONASS") == 0) {
     107          newAntMap->antName = line.mid(20,3);
     108        }
     109        else {
     110          newAntMap->antName = line.mid(0,20);
     111        }
    106112      }
    107113      else if (line.indexOf("ZEN1 / ZEN2 / DZEN") == 60) {
    108 
     114        QTextStream inLine(&line, QIODevice::ReadOnly);
     115        inLine >> newAntMap->zen1 >> newAntMap->zen2 >> newAntMap->dZen; 
    109116      }
    110117
     
    140147
    141148      else if (newFrqMap) {
    142         if (line.indexOf("NOAZI") == 3) {
     149        if      (line.indexOf("NORTH / EAST / UP") == 3) {
     150
     151        }
     152        else if (line.indexOf("NOAZI") == 3) {
    143153
    144154        }
Note: See TracChangeset for help on using the changeset viewer.