Make the sattrack do something useful.
parent
52dcd7f0f5
commit
9df2c90ae9
|
@ -102,9 +102,9 @@ public:
|
||||||
{
|
{
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << std::right << std::fixed << std::setprecision(3);
|
ss << std::right << std::fixed << std::setprecision(3);
|
||||||
ss << "Lat: " << std::setw(7) << Util::RadiansToDegrees(latitude);
|
ss << "Lat: " << std::setw(8) << Util::RadiansToDegrees(latitude);
|
||||||
ss << ", Lon: " << std::setw(7) << Util::RadiansToDegrees(longitude);
|
ss << ", Lon: " << std::setw(8) << Util::RadiansToDegrees(longitude);
|
||||||
ss << ", Alt: " << std::setw(9) << altitude;
|
ss << ", Alt: " << std::setw(10) << altitude;
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,14 +34,11 @@ int main()
|
||||||
|
|
||||||
for (int i = 0; i < 10; ++i)
|
for (int i = 0; i < 10; ++i)
|
||||||
{
|
{
|
||||||
/*
|
DateTime dt = tle.Epoch().AddMinutes(i * 10);
|
||||||
* current time
|
|
||||||
*/
|
|
||||||
DateTime now = DateTime::Now(true);
|
|
||||||
/*
|
/*
|
||||||
* calculate satellite position
|
* calculate satellite position
|
||||||
*/
|
*/
|
||||||
Eci eci = sgp4.FindPosition(now);
|
Eci eci = sgp4.FindPosition(dt);
|
||||||
/*
|
/*
|
||||||
* get look angle for observer to satellite
|
* get look angle for observer to satellite
|
||||||
*/
|
*/
|
||||||
|
@ -51,7 +48,7 @@ int main()
|
||||||
*/
|
*/
|
||||||
CoordGeodetic geo = eci.ToGeodetic();
|
CoordGeodetic geo = eci.ToGeodetic();
|
||||||
|
|
||||||
std::cout << now << " " << topo << " " << geo << std::endl;
|
std::cout << dt << " " << topo << " " << geo << std::endl;
|
||||||
};
|
};
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue