From 97c1d632a699f2d1b6804aa58be36226f29518f8 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 30 Mar 2011 22:41:31 +0100 Subject: [PATCH] Output prints satellites name. --- Makefile | 2 +- main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8b9bf87..20121e0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC=g++ -CFLAGS=-c -Wall -g +CFLAGS=-c -Wall -O2 LDFLAGS= SOURCES=Coord.cpp \ Eci.cpp \ diff --git a/main.cpp b/main.cpp index f45ce42..912b876 100644 --- a/main.cpp +++ b/main.cpp @@ -72,6 +72,8 @@ int main() { model.FindPosition(eci, tsince); CoordTopographic topo = obs.GetLookAngle(eci); + std::cout.width(17); + std::cout << itr->GetName() << " "; std::cout << std::setprecision(8) << std::fixed; std::cout.width(17); std::cout << tsince << " "; @@ -79,8 +81,6 @@ int main() { std::cout << Globals::Rad2Deg(topo.GetAzimuth()) << " "; std::cout.width(17); std::cout << Globals::Rad2Deg(topo.GetElevation()) << std::endl; - - } } /*