From f105a2b323210a7a081a55f9f0c075ea46137ae3 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Sun, 3 Jul 2011 15:15:18 +0100 Subject: [PATCH] Was converting double to int --- SGP4.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SGP4.cpp b/SGP4.cpp index 2047e8b..88d42cd 100755 --- a/SGP4.cpp +++ b/SGP4.cpp @@ -580,8 +580,7 @@ void SGP4::CalculateFinalPositionVelocity(Eci* eci, const double& tsince, const const double zdot = (rdotk * uz + rfdotk * vz) * kXKMPER / 60.0; Vector velocity(xdot, ydot, zdot); - Timespan diff; - diff.AddMinutes(tsince); + Timespan diff(tsince); Julian julian = Epoch() + diff; (*eci) = Eci(julian, position, velocity); }