Changeset 5450 in ntrip for trunk/GnssCenter
- Timestamp:
- Sep 13, 2013, 11:32:51 AM (11 years ago)
- Location:
- trunk/GnssCenter/monitor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/const.h
r5447 r5450 4 4 namespace GnssCenter { 5 5 6 enum t_irc {failure = -1, success, fatal}; // return code7 8 6 class t_CST { 9 7 public: 8 enum t_irc {failure = -1, success, fatal}; // return code 10 9 static const double aell; 11 10 static const double fInv; -
trunk/GnssCenter/monitor/monitor.cpp
r5449 r5450 140 140 double ell[3]; 141 141 142 if ( xyz2ell(xyz, ell) ==success) {142 if (t_utils::xyz2ell(xyz, ell) == t_CST::success) { 143 143 double latDeg = ell[0] * 180.0 / M_PI; 144 144 double lonDeg = ell[1] * 180.0 / M_PI; -
trunk/GnssCenter/monitor/utils.cpp
r5447 r5450 9 9 // Rectangular Coordinates -> Ellipsoidal Coordinates 10 10 //////////////////////////////////////////////////////////////////////////// 11 t_ ircxyz2ell(const double* XYZ, double* Ell) {11 t_CST::t_irc t_utils::xyz2ell(const double* XYZ, double* Ell) { 12 12 13 13 const double bell = t_CST::aell*(1.0-1.0/t_CST::fInv) ; … … 37 37 Ell[0] = atan(zps/(1.0-e2*nn/(nn+Ell[2]))) ; 38 38 if ( fabs(phiOld-Ell[0]) <= 1.0e-11 && fabs(hOld-Ell[2]) <= 1.0e-5 ) { 39 return success;39 return t_CST::success; 40 40 } 41 41 } 42 42 43 return failure;43 return t_CST::failure; 44 44 } 45 45 46 46 // Rectangular Coordinates -> North, East, Up Components 47 47 //////////////////////////////////////////////////////////////////////////// 48 void xyz2neu(const double* Ell, const double* xyz, double* neu) {48 void t_utils::xyz2neu(const double* Ell, const double* xyz, double* neu) { 49 49 50 50 double sinPhi = sin(Ell[0]); … … 67 67 // North, East, Up Components -> Rectangular Coordinates 68 68 //////////////////////////////////////////////////////////////////////////// 69 void neu2xyz(const double* Ell, const double* neu, double* xyz) {69 void t_utils::neu2xyz(const double* Ell, const double* neu, double* xyz) { 70 70 71 71 double sinPhi = sin(Ell[0]); -
trunk/GnssCenter/monitor/utils.h
r5447 r5450 6 6 namespace GnssCenter { 7 7 8 t_irc xyz2ell(const double* XYZ, double* Ell); 8 class t_utils { 9 public: 10 static t_CST::t_irc xyz2ell(const double* XYZ, double* Ell); 9 11 10 void xyz2neu(const double* Ell, const double* xyz, double* neu);12 static void xyz2neu(const double* Ell, const double* xyz, double* neu); 11 13 12 void neu2xyz(const double* Ell, const double* neu, double* xyz); 14 static void neu2xyz(const double* Ell, const double* neu, double* xyz); 15 }; 13 16 14 17 } // namespace GnssCenter
Note:
See TracChangeset
for help on using the changeset viewer.