Changeset 2113 in ntrip for trunk/BNC/bncmodel.cpp


Ignore:
Timestamp:
Dec 15, 2009, 10:02:11 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2112 r2113  
    4242#include <cmath>
    4343#include <newmatio.h>
     44#include <sstream>
    4445
    4546#include "bncmodel.h"
     47#include "bncapp.h"
    4648#include "bncpppclient.h"
    4749#include "bancroft.h"
     
    5153using namespace std;
    5254
    53 const unsigned MINOBS =    4;
    54 const double   MINELE = 10.0 * M_PI / 180.0;
    55 const double   sig_crd_0 =  100.0;
    56 const double   sig_crd_p =  100.0;
    57 const double   sig_clk_0 = 1000.0;
    58 const double   sig_trp_0 =    0.01;
    59 const double   sig_trp_p =    1e-6;
    60 const double   sig_amb_0 =  100.0;
    61 const double   sig_P3    =    1.0;
    62 const double   sig_L3    =    0.01;
     55const unsigned MINOBS       =    4;
     56const double   MINELE       = 10.0 * M_PI / 180.0;
     57const double   MAXRES_CODE  = 10.0;
     58const double   MAXRES_PHASE = 0.10;
     59const double   sig_crd_0    =  100.0;
     60const double   sig_crd_p    =  100.0;
     61const double   sig_clk_0    = 1000.0;
     62const double   sig_trp_0    =    0.01;
     63const double   sig_trp_p    =    1e-6;
     64const double   sig_amb_0    =  100.0;
     65const double   sig_P3       =    1.0;
     66const double   sig_L3       =    0.01;
    6367
    6468// Constructor
     
    109113// Constructor
    110114////////////////////////////////////////////////////////////////////////////
    111 bncModel::bncModel() {
     115bncModel::bncModel(QByteArray staID) {
     116
     117  _staID   = staID;
     118
     119  connect(this, SIGNAL(newMessage(QByteArray,bool)),
     120          ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool)));
    112121
    113122  bncSettings settings;
     
    394403  ColumnVector    vv;
    395404
     405  // Loop over all outliers
     406  // ----------------------
    396407  do {
    397 
    398     if (epoData->size() < MINOBS) {
    399       return failure;
    400     }
    401408   
    402409    // Bancroft Solution
     
    470477  }
    471478
     479  // Message (both log file and screen)
     480  // ----------------------------------
     481  ostringstream str;
     482  str.setf(ios::fixed);
     483  str << "    PPP " << _staID.data() << " "
     484      << epoData->tt.timestr(1) << " " << epoData->size() << " "
     485      << setw(14) << setprecision(3) << x()   << "  "
     486      << setw(14) << setprecision(3) << y()   << "  "
     487      << setw(14) << setprecision(3) << z();
     488
     489  emit newMessage(QString(str.str().c_str()).toAscii(), true);
     490
    472491  return success;
    473492}
     
    478497                               const ColumnVector& vv,
    479498                               QMap<QString, t_satData*>& satData) {
    480 
    481   const static double MAXRES_CODE  = 10.0;
    482   const static double MAXRES_PHASE = 0.10;
    483499
    484500  double vvMaxCode  = 0.0;
Note: See TracChangeset for help on using the changeset viewer.