Changeset 4342 in ntrip
- Timestamp:
- Jun 24, 2012, 4:06:05 PM (13 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r4341 r4342 64 64 65 65 _currEpo = 0; 66 _dataMP1 = 0; 67 _dataMP2 = 0; 68 69 connect(this, SIGNAL(displayGraph()), this, SLOT(slotDisplayGraph())); 66 67 connect(this, SIGNAL(displayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*)), 68 this, SLOT(slotDisplayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*))); 70 69 } 71 70 … … 85 84 // 86 85 //////////////////////////////////////////////////////////////////////////// 87 void t_reqcAnalyze::slotDisplayGraph() { 86 void t_reqcAnalyze::slotDisplayGraph(QVector<t_polarPoint*>* dataMP1, 87 QVector<t_polarPoint*>* dataMP2) { 88 88 89 if (((bncApp*) qApp)->mode() == bncApp::interactive) { 89 90 90 91 t_polarPlot* plotMP1 = new t_polarPlot(0); 91 plotMP1->addCurve(_dataMP1); 92 _dataMP1 = 0; 92 plotMP1->addCurve(dataMP1); 93 93 94 94 t_polarPlot* plotMP2 = new t_polarPlot(0); 95 plotMP2->addCurve(_dataMP2); 96 _dataMP2 = 0; 95 plotMP2->addCurve(dataMP2); 97 96 98 97 QVector<QWidget*> plots; … … 151 150 << obsFile->fileName().toAscii().data() << endl << endl; 152 151 152 // A priori Coordinates 153 // -------------------- 154 ColumnVector xyz = obsFile->xyz(); 155 153 156 // Loop over all Epochs 154 157 // -------------------- … … 179 182 t_satStat& satStat = _satStat[prn]; 180 183 181 satStat.addObs( eph, obs);184 satStat.addObs(obs, eph, xyz); 182 185 } 183 186 … … 189 192 _log->setRealNumberPrecision(2); 190 193 191 delete _dataMP1; _dataMP1 = new QVector<t_polarPoint*>;192 delete _dataMP2; _dataMP2 = new QVector<t_polarPoint*>;194 QVector<t_polarPoint*>* dataMP1 = new QVector<t_polarPoint*>; 195 QVector<t_polarPoint*>* dataMP2 = new QVector<t_polarPoint*>; 193 196 194 197 QMapIterator<QString, t_satStat> it(_satStat); … … 218 221 stddev2 += diff2 * diff2; 219 222 //// beg test 220 (* _dataMP1) << (new t_polarPoint(anaObs->az, anaObs->zen, 0.5));221 (* _dataMP2) << (new t_polarPoint(anaObs->az, anaObs->zen, 1.0));223 (*dataMP1) << (new t_polarPoint(anaObs->az, anaObs->zen, 0.5)); 224 (*dataMP2) << (new t_polarPoint(anaObs->az, anaObs->zen, 1.0)); 222 225 //// end test 223 226 } … … 230 233 } 231 234 232 emit displayGraph( );235 emit displayGraph(dataMP1, dataMP2); 233 236 234 237 _log->flush(); … … 237 240 // 238 241 //////////////////////////////////////////////////////////////////////////// 239 void t_reqcAnalyze::t_satStat::addObs(const t_eph* eph, const t_obs& obs) { 242 void t_reqcAnalyze::t_satStat::addObs(const t_obs& obs, const t_eph* eph, 243 const ColumnVector& xyz) { 240 244 241 245 t_anaObs* newObs = new t_anaObs(obs); … … 261 265 // Compute the Azimuth and Zenith Distance 262 266 // --------------------------------------- 263 if (eph ) {267 if (eph && xyz.size()) { 264 268 double xSat, ySat, zSat, clkSat; 265 269 eph->position(obs.GPSWeek, obs.GPSWeeks, xSat, ySat, zSat, clkSat); 266 270 267 //// beg test268 double xRec = -3947762.7496;269 double yRec = 3364399.8789;270 double zRec = 3699428.5111;271 //// end test272 273 271 double rho, eleSat, azSat; 274 topos(x Rec, yRec, zRec, xSat, ySat, zSat, rho, eleSat, azSat);272 topos(xyz(1), xyz(2), xyz(3), xSat, ySat, zSat, rho, eleSat, azSat); 275 273 276 274 newObs->az = azSat * 180.0/M_PI; -
trunk/BNC/src/rinex/reqcanalyze.h
r4338 r4342 45 45 signals: 46 46 void finished(); 47 void displayGraph( );47 void displayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*); 48 48 49 49 private slots: 50 void slotDisplayGraph( );50 void slotDisplayGraph(QVector<t_polarPoint*>*, QVector<t_polarPoint*>*); 51 51 52 52 public: … … 73 73 } 74 74 } 75 void addObs(const t_ eph* eph, const t_obs& obs);75 void addObs(const t_obs& obs, const t_eph* eph, const ColumnVector& xyz); 76 76 QVector<t_anaObs*> anaObs; 77 77 }; … … 88 88 QMap<QString, t_satStat> _satStat; 89 89 t_rnxObsFile::t_rnxEpo* _currEpo; 90 QVector<t_polarPoint*>* _dataMP1;91 QVector<t_polarPoint*>* _dataMP2;92 90 }; 93 91
Note:
See TracChangeset
for help on using the changeset viewer.