- Timestamp:
- Mar 29, 2011, 5:14:09 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.h
r2770 r3174 3 3 4 4 #include <newmat.h> 5 5 #include <QtCore> 6 6 #include <stdio.h> 7 7 #include <string> … … 16 16 bool isNewerThan(const t_eph* eph) const; 17 17 std::string prn() const {return _prn;} 18 void setReceptDateTime(const QDateTime& dateTime) { 19 _receptDateTime = dateTime; 20 } 21 const QDateTime& receptDateTime() const {return _receptDateTime;} 18 22 19 23 int GPSweek() const { return _GPSweek; } … … 42 46 int _GPSweek; 43 47 double _GPSweeks; 48 QDateTime _receptDateTime; 44 49 }; 45 50 -
trunk/BNC/bnc.pro
r3173 r3174 42 42 bancroft.h bncmodel.h bncfigureppp.h bncrawfile.h \ 43 43 bnctides.h bncmap.h bncmapview.h bncantex.h \ 44 bncephuser.h 44 bncephuser.h bncoutf.h \ 45 45 upload/bncrtnetdecoder.h upload/bncuploadcaster.h \ 46 upload/bncclockrinex.h \ 46 47 RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h \ 47 48 RTCM/RTCM2_2021.h RTCM/rtcm_utils.h \ … … 74 75 bancroft.cpp bncmodel.cpp bncfigureppp.cpp bncrawfile.cpp \ 75 76 bnctides.cpp bncmap.cpp bncmapview.cpp bncantex.cpp \ 76 bncephuser.cpp 77 bncephuser.cpp bncoutf.cpp \ 77 78 upload/bncrtnetdecoder.cpp upload/bncuploadcaster.cpp \ 79 upload/bncclockrinex.cpp \ 78 80 RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 79 81 RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \ -
trunk/BNC/bncephuser.h
r3032 r3174 95 95 delete prev; 96 96 } 97 ColumnVector xx; 97 98 t_eph* last; 98 99 t_eph* prev; -
trunk/BNC/upload/bncrtnetdecoder.cpp
r3172 r3174 125 125 in >> prn; 126 126 prns << prn; 127 if ( _eph List.contains(prn) ) {127 if ( _eph.contains(prn) ) { 128 128 in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5) 129 129 >> xx(6) >> xx(7) >> xx(8) >> xx(9) >> xx(10) … … 142 142 xx(14) *= 1e3; // z-crd at time + dT 143 143 144 pair = _eph List[prn];144 pair = _eph[prn]; 145 145 pair->xx = xx; 146 146 } … … 148 148 else { 149 149 prn = prns[ii]; 150 if ( _eph List.contains(prn) ) {151 pair = _eph List[prn];150 if ( _eph.contains(prn) ) { 151 pair = _eph[prn]; 152 152 xx = pair->xx; 153 153 } … … 158 158 t_eph* ep = 0; 159 159 if (pair) { 160 ep = pair-> eph;161 if (pair-> oldEph&& ep &&160 ep = pair->last; 161 if (pair->prev && ep && 162 162 ep->receptDateTime().secsTo(QDateTime::currentDateTime()) < 60) { 163 ep = pair-> oldEph;163 ep = pair->prev; 164 164 } 165 165 } … … 229 229 int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer)); 230 230 if (len > 0) { 231 if (_caster.at(ic)->ic() == 1) { emit(newOutBytes1(len));}232 if (_caster.at(ic)->ic() == 2) { emit(newOutBytes2(len));}233 if (_caster.at(ic)->ic() == 3) { emit(newOutBytes3(len));}234 if (_caster.at(ic)->ic() == 4) { emit(newOutBytes4(len));}235 if (_caster.at(ic)->ic() == 5) { emit(newOutBytes5(len));}236 if (_caster.at(ic)->ic() == 6) { emit(newOutBytes6(len));}237 if (_caster.at(ic)->ic() == 7) { emit(newOutBytes7(len));}238 if (_caster.at(ic)->ic() == 8) { emit(newOutBytes8(len));}239 if (_caster.at(ic)->ic() == 9) { emit(newOutBytes9(len));}240 if (_caster.at(ic)->ic() == 10) { emit(newOutBytes10(len));}241 231 _caster.at(ic)->write(obuffer, len); 242 232 } … … 287 277 ColumnVector vv(3); 288 278 289 ep->position(GPSweek12, GPSweeks12, xB , vv);279 ep->position(GPSweek12, GPSweeks12, xB.data(), vv.data()); 290 280 291 281 ColumnVector xyz; … … 333 323 334 324 outLine.sprintf("%d %.1f %s %3d %10.3f %8.3f %8.3f %8.3f\n", 335 GPSweek, GPSweeks, ep->prn(). toAscii().data(),325 GPSweek, GPSweeks, ep->prn().c_str(), 336 326 ep->IOD(), dClk, rsw(1), rsw(2), rsw(3)); 337 327 … … 351 341 const QString& trafo) { 352 342 353 bn sSettings settings;343 bncSettings settings; 354 344 355 345 if (trafo == "ETRF2000") { -
trunk/BNC/upload/bncrtnetdecoder.h
r3172 r3174 29 29 #include <QtCore> 30 30 #include "bncephuser.h" 31 #include "bncuploadcaster.h" 31 32 #include "RTCM/GPSDecoder.h" 32 33 … … 48 49 49 50 QString _buffer; 50 51 QList<bncUploadCaster*> _caster; 51 52 int _GPSweek; 52 53 double _GPSweeks; -
trunk/BNC/upload/bncuploadcaster.cpp
r3172 r3174 27 27 bncUploadCaster::bncUploadCaster(const QString& mountpoint, 28 28 const QString& outHost, int outPort, 29 const QString& password, 29 const QString& password, 30 const QString& crdTrafo, bool CoM, 30 31 const QString& outFileName) { 31 32 … … 36 37 _outPort = outPort; 37 38 _password = password; 39 _crdTrafo = crdTrafo; 40 _CoM = CoM; 38 41 39 42 _outSocket = 0; -
trunk/BNC/upload/bncuploadcaster.h
r3172 r3174 9 9 bncUploadCaster(const QString& mountpoint, 10 10 const QString& outHost, int outPort, 11 const QString& password, 11 const QString& password, 12 const QString& crdTrafo, bool CoM, 12 13 const QString& outFileName); 13 14 virtual ~bncUploadCaster(); … … 16 17 void printAscii(const QString& line); 17 18 bool usedSocket() const {return _outSocket;} 19 QString crdTrafo() const {return _crdTrafo;} 20 bool CoM() const {return _CoM;} 18 21 19 22 signals: … … 26 29 int _outPort; 27 30 QString _password; 31 QString _crdTrafo; 32 bool _CoM; 28 33 QTcpSocket* _outSocket; 29 34 int _sOpenTrial;
Note:
See TracChangeset
for help on using the changeset viewer.