- Timestamp:
- Feb 25, 2011, 3:12:22 PM (14 years ago)
- Location:
- trunk/BNS
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r3041 r3045 340 340 in >> hlp >> _year >> _month >> _day >> _hour >> _min >> _sec; 341 341 342 GPSweekFromYMDhms(_year, _month, _day, _hour, _min, _sec, _GPSweek, _GPSweeks);342 BNS::GPSweekFromYMDhms(_year, _month, _day, _hour, _min, _sec, _GPSweek, _GPSweeks); 343 343 344 344 if (_echoStream) { … … 625 625 626 626 if (ii == 1) { 627 XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw);627 BNS::XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw); 628 628 dClk = (xx(4) + xx(5) - xB(4)) * 299792458.0; 629 629 } 630 630 else { 631 XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw2);631 BNS::XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw2); 632 632 } 633 633 } -
trunk/BNS/bnseph.cpp
r2768 r3045 27 27 28 28 using namespace std; 29 using namespace BNS; 29 30 30 31 // Constructor -
trunk/BNS/bnseph.h
r2768 r3045 24 24 virtual void position(int GPSweek, double GPSweeks, ColumnVector& xc, 25 25 ColumnVector& vv) const = 0; 26 virtual t_irc read(const QStringList& lines) = 0;26 virtual BNS::t_irc read(const QStringList& lines) = 0; 27 27 virtual int IOD() const = 0; 28 28 virtual int RTCM3(unsigned char *) = 0; … … 42 42 }; 43 43 virtual ~t_ephGlo() {}; 44 virtual t_irc read(const QStringList& lines);44 virtual BNS::t_irc read(const QStringList& lines); 45 45 virtual void position(int GPSweek, double GPSweeks, ColumnVector& xc, 46 46 ColumnVector& vv) const; … … 76 76 t_ephGPS() {}; 77 77 virtual ~t_ephGPS() {}; 78 virtual t_irc read(const QStringList& lines);78 virtual BNS::t_irc read(const QStringList& lines); 79 79 virtual void position(int GPSweek, double GPSweeks, ColumnVector& xc, 80 80 ColumnVector& vv) const; -
trunk/BNS/bnsoutf.cpp
r3042 r3045 22 22 23 23 using namespace std; 24 using namespace BNS; 24 25 25 26 // Constructor -
trunk/BNS/bnsoutf.h
r3041 r3045 14 14 virtual ~bnsoutf(); 15 15 16 virtual t_irc write(int GPSweek, double GPSweeks, const QString& prn,17 const ColumnVector& xx, bool append);16 virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn, 17 const ColumnVector& xx, bool append); 18 18 19 19 protected: -
trunk/BNS/bnsrinex.cpp
r3041 r3045 23 23 24 24 using namespace std; 25 using namespace BNS; 25 26 26 27 // Constructor -
trunk/BNS/bnsrinex.h
r3041 r3045 13 13 const QString& intr, int sampl); 14 14 virtual ~bnsRinex(); 15 virtual t_irc write(int GPSweek, double GPSweeks, const QString& prn,16 const ColumnVector& xx);15 virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn, 16 const ColumnVector& xx); 17 17 18 18 private: -
trunk/BNS/bnssp3.cpp
r3041 r3045 23 23 24 24 using namespace std; 25 using namespace BNS; 25 26 26 27 // Constructor -
trunk/BNS/bnssp3.h
r3041 r3045 13 13 const QString& intr, int sampl); 14 14 virtual ~bnsSP3(); 15 virtual t_irc write(int GPSweek, double GPSweeks, const QString& prn,16 const ColumnVector& xx, bool append);15 virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn, 16 const ColumnVector& xx, bool append); 17 17 18 18 private: -
trunk/BNS/bnsutils.cpp
r3039 r3045 25 25 26 26 using namespace std; 27 28 namespace BNS { 27 29 28 30 // … … 209 211 } 210 212 213 } // namespace BNS -
trunk/BNS/bnsutils.h
r2558 r3045 11 11 class gpsEph; 12 12 13 enum t_irc {failure = -1, success}; // return code 14 15 void expandEnvVar(QString& str); 16 17 QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks); 18 19 void GPSweekFromDateAndTime(const QDateTime& dateTime, 20 int& GPSWeek, double& GPSWeeks); 21 22 void GPSweekFromYMDhms(int year, int month, int day, int hour, int min, 23 double sec, int& GPSWeek, double& GPSWeeks); 24 25 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac); 26 27 void currentGPSWeeks(int& week, double& sec); 28 29 void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv, 30 const ColumnVector& xyz, ColumnVector& rsw); 31 32 ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx, 33 double* acc, 34 ColumnVector (*der)(double x, const ColumnVector& y, double* acc)); 35 36 QByteArray waitForLine(QTcpSocket* socket); 37 13 namespace BNS { 14 enum t_irc {failure = -1, success}; // return code 15 16 void expandEnvVar(QString& str); 17 18 QDateTime dateAndTimeFromGPSweek(int GPSWeek, double GPSWeeks); 19 20 void GPSweekFromDateAndTime(const QDateTime& dateTime, 21 int& GPSWeek, double& GPSWeeks); 22 23 void GPSweekFromYMDhms(int year, int month, int day, int hour, int min, 24 double sec, int& GPSWeek, double& GPSWeeks); 25 26 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac); 27 28 void currentGPSWeeks(int& week, double& sec); 29 30 void XYZ_to_RSW(const ColumnVector& rr, const ColumnVector& vv, 31 const ColumnVector& xyz, ColumnVector& rsw); 32 33 ColumnVector rungeKutta4(double xi, const ColumnVector& yi, double dx, 34 double* acc, 35 ColumnVector (*der)(double x, const ColumnVector& y, double* acc)); 36 37 QByteArray waitForLine(QTcpSocket* socket); 38 } 38 39 #endif
Note:
See TracChangeset
for help on using the changeset viewer.