Was converting double to int

feature/19
Daniel Warner 2011-07-03 15:15:18 +01:00
parent 557e4c677d
commit f105a2b323
1 changed files with 1 additions and 2 deletions

View File

@ -580,8 +580,7 @@ void SGP4::CalculateFinalPositionVelocity(Eci* eci, const double& tsince, const
const double zdot = (rdotk * uz + rfdotk * vz) * kXKMPER / 60.0; const double zdot = (rdotk * uz + rfdotk * vz) * kXKMPER / 60.0;
Vector velocity(xdot, ydot, zdot); Vector velocity(xdot, ydot, zdot);
Timespan diff; Timespan diff(tsince);
diff.AddMinutes(tsince);
Julian julian = Epoch() + diff; Julian julian = Epoch() + diff;
(*eci) = Eci(julian, position, velocity); (*eci) = Eci(julian, position, velocity);
} }