2011-05-27 00:49:59 +00:00
|
|
|
#include "Observer.h"
|
|
|
|
#include "SGP4.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2011-12-15 22:46:42 +00:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
Observer obs(51.507406923983446, -0.12773752212524414, 0.05);
|
2011-12-22 14:05:51 +00:00
|
|
|
Tle tle = Tle("UK-DMC 2 ",
|
|
|
|
"1 35683U 09041C 11356.17214994 .00000411 00000-0 77254-4 0 6826",
|
|
|
|
"2 35683 98.0512 251.8127 0001492 79.4611 280.6776 14.69611889128518");
|
2011-05-27 00:54:41 +00:00
|
|
|
SGP4 sgp4(tle);
|
2011-05-27 00:49:59 +00:00
|
|
|
|
2011-12-15 22:46:42 +00:00
|
|
|
while(1)
|
|
|
|
{
|
2011-05-27 00:49:59 +00:00
|
|
|
Julian now;
|
2011-12-13 22:37:13 +00:00
|
|
|
Eci eci = sgp4.FindPosition(now);
|
2011-05-27 00:49:59 +00:00
|
|
|
CoordTopographic topo = obs.GetLookAngle(eci);
|
|
|
|
CoordGeodetic geo = eci.ToGeodetic();
|
2011-05-27 09:40:19 +00:00
|
|
|
std::cout << now << " ";
|
2011-05-27 00:49:59 +00:00
|
|
|
std::cout << topo << " ";
|
|
|
|
std::cout << geo << std::endl;
|
|
|
|
};
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|