Changeset 4697 in ntrip


Ignore:
Timestamp:
Sep 9, 2012, 5:41:11 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4696 r4697  
    734734        << "# Slips:     " << numSlips << endl;
    735735
     736  for (int kk = 1; kk <= 4; kk++) {
     737    QVector<t_polarPoint*>* data = 0;
     738    QString text;
     739    if      (kk == 1) {
     740      data = dataMP1;
     741      text = "Mean MP1:    ";
     742    }
     743    else if (kk == 2) {
     744      data = dataMP2;
     745      text = "Mean MP2:    ";
     746    }
     747    else if (kk == 3) {
     748      data = dataSNR1;
     749      text = "Mean SNR1:   ";
     750    }
     751    else if (kk == 4) {
     752      data = dataSNR2;
     753      text = "Mean SNR2:   ";
     754    }
     755    double mean = 0.0;
     756    for (int ii = 0; ii < data->size(); ii++) {
     757      const t_polarPoint* point = data->at(ii);
     758      mean += point->_value;
     759    }
     760    mean /= data->size();
     761    *_log << text << mean << endl;
     762  }
     763
    736764  _log->flush();
    737765}
Note: See TracChangeset for help on using the changeset viewer.