Output prints satellites name.

feature/19
Daniel Warner 2011-03-30 22:41:31 +01:00
parent 4f49c85bb9
commit 97c1d632a6
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CC=g++ CC=g++
CFLAGS=-c -Wall -g CFLAGS=-c -Wall -O2
LDFLAGS= LDFLAGS=
SOURCES=Coord.cpp \ SOURCES=Coord.cpp \
Eci.cpp \ Eci.cpp \

View File

@ -72,6 +72,8 @@ int main() {
model.FindPosition(eci, tsince); model.FindPosition(eci, tsince);
CoordTopographic topo = obs.GetLookAngle(eci); CoordTopographic topo = obs.GetLookAngle(eci);
std::cout.width(17);
std::cout << itr->GetName() << " ";
std::cout << std::setprecision(8) << std::fixed; std::cout << std::setprecision(8) << std::fixed;
std::cout.width(17); std::cout.width(17);
std::cout << tsince << " "; std::cout << tsince << " ";
@ -79,8 +81,6 @@ int main() {
std::cout << Globals::Rad2Deg(topo.GetAzimuth()) << " "; std::cout << Globals::Rad2Deg(topo.GetAzimuth()) << " ";
std::cout.width(17); std::cout.width(17);
std::cout << Globals::Rad2Deg(topo.GetElevation()) << std::endl; std::cout << Globals::Rad2Deg(topo.GetElevation()) << std::endl;
} }
} }
/* /*