dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
coordinateconversions.h
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  */
27 
28 #ifndef COORDINATECONVERSIONS_H
29 #define COORDINATECONVERSIONS_H
30 
31 #include "utils_global.h"
32 #include "math.h"
33 
34 namespace Utils {
35 
36 class QTCREATOR_UTILS_EXPORT CoordinateConversions
37 {
38 public:
40  int NED2LLA_HomeECEF(double BaseECEF[3], double NED[3], double LLA[3]);
41  int NED2LLA_HomeLLA(double homeLLA[3], double NED[3], double LLA[3]);
42  void LLA2Rne(double LLA[3], double Rne[3][3]);
43  void LLA2ECEF(double LLA[3], double ECEF[3]);
44  int ECEF2LLA(double ECEF[3], double LLA[3]);
45  void LLA2NED_HomeECEF(double LLA[3], double homeECEF[3], double Rne[3][3], double NED[3]);
46  void LLA2NED_HomeLLA(double LLA[3], double homeLLA[3], double NED[3]);
47  void Quaternion2RPY(const float q[4], float rpy[3]);
48  void RPY2Quaternion(const float rpy[3], float q[4]);
49  void Quaternion2R(const float q[4], float Rbe[3][3]);
50  void R2Quaternion(float const Rbe[3][3], float q[4]);
51 private:
52  //WGS84 parameters
53  static const double R_EQUATOR; // Equatorial Radius
54  static const double ECCENTRICITY; // Eccentricity
55 };
56 
57 }
58 
59 #endif /* COORDINATECONVERSIONS_H */
BaseECEF
Definition: OPPlots.m:37
Rne
Definition: OPPlots.m:38
axis equal end function NED
Definition: OPPlots.m:63
LLA
Definition: OPPlots.m:34
ECEF
Definition: OPPlots.m:66