Changeset 7848 in ntrip


Ignore:
Timestamp:
Mar 18, 2016, 5:46:42 PM (8 years ago)
Author:
stuerze
Message:

minor format changes regarding PCO info in sinex tro header

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncantex.cpp

    r7766 r7848  
    9595
    9696  if (antName.find("NULLANTENNA") != string::npos) {
    97     return QString();
     97    return QString(" ------ ------ ------");
    9898  }
    9999
    100100  QString antNameQ = antName.c_str();
    101 
    102101  if (_maps.find(antNameQ) == _maps.end()) {
    103     return QString();
     102    return QString(" ------ ------ ------");
    104103  }
    105104
    106105  t_antMap* map = _maps[antNameQ];
    107106  if (map->frqMap.find(frqType) == map->frqMap.end()) {
    108     return QString();
     107    return QString(" ------ ------ ------");
    109108  }
    110109
    111110  t_frqMap* frqMap = map->frqMap[frqType];
    112111
    113   return QString(" %1 %2 %3").arg(frqMap->neu[2], 6, 'f', 4)
    114                              .arg(frqMap->neu[0], 6, 'f', 4)
    115                              .arg(frqMap->neu[1], 6, 'f', 4);
     112  QString u, n,e;
     113  u.sprintf("%+6.4f" ,frqMap->neu[2]); if (u.mid(1,1) == "0") {u.remove(1,1);}
     114  n.sprintf("%+6.4f" ,frqMap->neu[0]); if (n.mid(1,1) == "0") {n.remove(1,1);}
     115  e.sprintf("%+6.4f" ,frqMap->neu[1]); if (e.mid(1,1) == "0") {e.remove(1,1);}
     116
     117  return QString(" %1 %2 %3").arg(u).arg(n).arg(e);
    116118}
    117119
  • trunk/BNC/src/bncsinextro.cpp

    r7789 r7848  
    158158           << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::G1).toStdString()
    159159           << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::G2).toStdString()
     160           <<  " ---------"
    160161        << endl;
    161162      _out << "-SITE/GPS_PHASE_CENTER" << endl << endl;
     
    169170           << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::R1).toStdString()
    170171           << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::R2).toStdString()
     172           <<  " ---------"
    171173        << endl;
    172174      _out << "-SITE/GLONASS_PHASE_CENTER" << endl << endl;
Note: See TracChangeset for help on using the changeset viewer.