Was converting double to int
parent
557e4c677d
commit
f105a2b323
3
SGP4.cpp
3
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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue