mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 02:23:57 +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
|
@ -21,7 +21,7 @@ LeoCircularOrbitMobilityModel::GetTypeId ()
|
|||
.SetGroupName ("Leo")
|
||||
.AddConstructor<LeoCircularOrbitMobilityModel> ()
|
||||
.AddAttribute ("Altitude",
|
||||
"A height from the earth's surface in meters",
|
||||
"A height from the earth's surface in kilometers",
|
||||
DoubleValue (1000.0),
|
||||
MakeDoubleAccessor (&LeoCircularOrbitMobilityModel::SetAltitude,
|
||||
&LeoCircularOrbitMobilityModel::GetAltitude),
|
||||
|
@ -76,7 +76,7 @@ DotProduct (const Vector3D &l, const Vector3D &r)
|
|||
double
|
||||
LeoCircularOrbitMobilityModel::GetSpeed () const
|
||||
{
|
||||
return sqrt (LEO_EARTH_GM / m_orbitHeight);
|
||||
return sqrt (LEO_EARTH_GM_KM_E10 / m_orbitHeight) * 1e5;
|
||||
}
|
||||
|
||||
Vector
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue