mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 02:23:57 +02:00
Fix an error that causes 2*pi*1000 times too fast movement
This commit is contained in:
parent
54709ae1fb
commit
a82e22aab7
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ LeoCircularOrbitMobilityModel::GetProgress (Time t) const
|
|||
{
|
||||
sign = -1;
|
||||
}
|
||||
return sign * (2 * M_PI * ((GetSpeed () * t.GetSeconds ()) / LEO_EARTH_RAD_KM)) + m_offset;
|
||||
// 2pi * (distance travelled / circumference of earth) + offset
|
||||
return sign * (((GetSpeed () * t.GetSeconds ()) / (LEO_EARTH_RAD_KM * 1000))) + m_offset;
|
||||
}
|
||||
|
||||
Vector3D
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue