mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
fixup
This commit is contained in:
parent
1c96f7d2f6
commit
ee268592ad
2 changed files with 5 additions and 6 deletions
|
@ -46,15 +46,14 @@ LeoOrbitNodeHelper::Install (const std::string &orbitFile)
|
|||
{
|
||||
MobilityHelper mobility;
|
||||
mobility.SetPositionAllocator ("ns3::LeoCircularOrbitPostionAllocator",
|
||||
"NumOrbits", IntegerValue (orbit.inc),
|
||||
"NumOrbits", IntegerValue (orbit.planes),
|
||||
"NumSatellites", IntegerValue (orbit.sats));
|
||||
mobility.SetMobilityModel ("ns3::LeoCircularOrbitMobilityModel",
|
||||
"Altitude", DoubleValue (orbit.alt),
|
||||
"Inclination", DoubleValue (orbit.inc));
|
||||
|
||||
NodeContainer c;
|
||||
Ptr<Node> node = m_nodeFactory.Create<Node> ();
|
||||
c.Add (node);
|
||||
c.Create (orbit.sats*orbit.planes);
|
||||
mobility.Install (c);
|
||||
nodes.Add (c);
|
||||
NS_LOG_DEBUG ("Added orbit plane");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue