Skip to content

Commit

Permalink
Add DC example
Browse files Browse the repository at this point in the history
  • Loading branch information
mychele committed Oct 5, 2017
1 parent b65bdc7 commit 0946a56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mmwave/examples/mc-twoenbs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -628,14 +628,14 @@ main (int argc, char *argv[])
MobilityHelper uemobility;
Ptr<ListPositionAllocator> uePositionAlloc = CreateObject<ListPositionAllocator> ();
//uePositionAlloc->Add (Vector (ueInitialPosition, -5, 0));
uePositionAlloc->Add (Vector (ueInitialPosition, -5, 0));
uePositionAlloc->Add (Vector (ueInitialPosition, -5, 1.6));
uemobility.SetMobilityModel ("ns3::ConstantVelocityMobilityModel");
uemobility.SetPositionAllocator(uePositionAlloc);
uemobility.Install (ueNodes);
BuildingsHelper::Install (ueNodes);

//ueNodes.Get (0)->GetObject<MobilityModel> ()->SetPosition (Vector (ueInitialPosition, -5, 0));
ueNodes.Get (0)->GetObject<MobilityModel> ()->SetPosition (Vector (ueInitialPosition, -5, 0));
ueNodes.Get (0)->GetObject<MobilityModel> ()->SetPosition (Vector (ueInitialPosition, -5, 1.6));
ueNodes.Get (0)->GetObject<ConstantVelocityMobilityModel> ()->SetVelocity (Vector (0, 0, 0));

// Install mmWave, lte, mc Devices to the nodes
Expand Down
2 changes: 2 additions & 0 deletions src/mmwave/examples/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ def build(bld):
obj.source = 'mmwave-epc-amc-test.cc'
obj = bld.create_ns3_program('mmwave-tcp-raytracing-example', ['mmwave'])
obj.source = 'mmwave-tcp-raytracing-example.cc'
obj = bld.create_ns3_program('mc-twoenbs', ['mmwave'])
obj.source = 'mc-twoenbs.cc'

0 comments on commit 0946a56

Please sign in to comment.