backup
[gps] / position.cpp
1 #include <iostream>
2 #include "Position.hpp"
3
4 using namespace std;
5 using namespace gpstk;
6
7 int main() {
8
9         /* x,y,z,Position::Cartesian
10            lat,lon,alt,Position::Geodetic
11         */
12         Position pos(4204286, 165362, 4777575, Position::Cartesian);
13
14         cout << " X = " << pos.asECEF().X()
15              << " Y = " << pos.asECEF().Y()
16              << " Z = " << pos.asECEF().Z()
17              << " lon = " << pos.asGeodetic().getLongitude()
18              << " lat = " << pos.asGeodetic().geodeticLatitude()
19              << " alt = " << pos.asGeodetic().getAltitude()
20              << endl;
21         
22         return 0;
23 }