Add test for offset

This commit is contained in:
Tim Schubert 2020-08-15 12:59:32 +02:00
parent 9dddf5ad20
commit 7df91546da
2 changed files with 29 additions and 6 deletions

View file

@ -105,7 +105,7 @@ double
LeoCircularOrbitMobilityModel::GetProgress (Time t) const
{
// TODO use nanos or ms instead? does it give higher precision?
return 2 * M_PI * ((GetSpeed () * t.GetSeconds ()) / LEO_EARTH_RAD_M);
return 2 * M_PI * ((GetSpeed () * t.GetSeconds ()) / LEO_EARTH_RAD_M) + m_offset;
}
Vector3D