mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 02:23:57 +02:00
Enable setting of mobility precision and add test
This commit is contained in:
parent
6fdfc6b2a8
commit
4cad8458ab
4 changed files with 115 additions and 10 deletions
|
@ -70,6 +70,16 @@ private:
|
|||
*/
|
||||
Vector3D m_plane;
|
||||
|
||||
/**
|
||||
* Current position
|
||||
*/
|
||||
Vector3D m_position;
|
||||
|
||||
/**
|
||||
* Time precision for positions
|
||||
*/
|
||||
Time m_precision;
|
||||
|
||||
/**
|
||||
* \return the current position.
|
||||
*/
|
||||
|
@ -94,6 +104,15 @@ private:
|
|||
* Advances a satellite by a degrees on the orbital plane
|
||||
*/
|
||||
Vector3D RotatePlane (double a, const Vector3D &x) const;
|
||||
|
||||
/**
|
||||
* Calculate the position at time
|
||||
*
|
||||
* \param t time
|
||||
*/
|
||||
Vector CalcPosition (Time t) const;
|
||||
|
||||
Vector Update ();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue