Skip to content

Commit

Permalink
bug 2048: applied Piotr's fix for lte-cqi-generation test (with minor…
Browse files Browse the repository at this point in the history
… changes)
  • Loading branch information
Nicola Baldo committed Nov 22, 2016
1 parent f7bab73 commit 1acb243
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lte/test/lte-test-cqi-generation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,24 +300,26 @@ LteCqiGenerationDlPowerControlTestCase::DoRun (void)
NodeContainer ueNodes2;
enbNodes.Create (2);
ueNodes1.Create (1);
ueNodes2.Create (1);
ueNodes2.Create (2);
NodeContainer allNodes = NodeContainer ( enbNodes, ueNodes1, ueNodes2);

/*
* The topology is the following:
*
* eNB1 UE1 UE2 eNB2
* | | |
* x -------------------------- x -------------------------- x
* 500 m 500 m
* eNB1 UE1 UE2 eNB2 UE3
* | | | |
* x -------------------------- x -------------------------- x----x
* 500 m 500 m 50m
*
* see https://www.nsnam.org/bugzilla/show_bug.cgi?id=2048#c4 for why we need UE3
*/

Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator> ();
positionAlloc->Add (Vector (0.0, 0.0, 0.0)); // eNB1
positionAlloc->Add (Vector (1000, 0.0, 0.0)); // eNB2
positionAlloc->Add (Vector (500.0, 0.0, 0.0)); // UE1
positionAlloc->Add (Vector (500, 0.0, 0.0)); // UE2
positionAlloc->Add (Vector (1050, 0.0, 0.0)); // UE3
MobilityHelper mobility;
mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
mobility.SetPositionAllocator (positionAlloc);
Expand Down

0 comments on commit 1acb243

Please sign in to comment.