mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Fix wrong velocity and latitude
This commit is contained in:
parent
4cad8458ab
commit
d145337d6c
3 changed files with 5 additions and 5 deletions
|
@ -50,11 +50,11 @@ LeoCircularOrbitAllocator::GetNext () const
|
|||
2 * M_PI * (m_lastSatellite / (double) m_numSatellites),
|
||||
0);
|
||||
|
||||
m_lastSatellite = (m_lastSatellite + 1) % m_numSatellites;
|
||||
if (m_lastSatellite >= m_numSatellites)
|
||||
if (m_lastSatellite + 1 == m_numSatellites)
|
||||
{
|
||||
m_lastOrbit = (m_lastOrbit + 1) % m_numOrbits;
|
||||
}
|
||||
m_lastSatellite = (m_lastSatellite + 1) % m_numSatellites;
|
||||
|
||||
return next;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue