mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
Add test for offset
This commit is contained in:
parent
9dddf5ad20
commit
7df91546da
2 changed files with 29 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue