Skip to content

Commit

Permalink
fixup: BackgroundCellTrafficManager: remove nrCqiTable, getCqiFromTab…
Browse files Browse the repository at this point in the history
…le(): already exists in base BackgroundTrafficManager class
  • Loading branch information
ZoltanBojthe authored and giovanninardini committed Jun 20, 2024
1 parent 93710aa commit 3494242
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
29 changes: 0 additions & 29 deletions src/nodes/backgroundCell/BackgroundCellTrafficManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,6 @@ namespace simu5g {

Define_Module(BackgroundCellTrafficManager);

double BackgroundCellTrafficManager::nrCqiTable[16] = {
-9999.0,
-9999.0,
-9999.0,
-5.5,
-3.5,
-1.5,
0.5,
4.5,
5.5,
7.5,
10.5,
12.5,
15.5,
17.5,
21.5,
25.5
};

double BackgroundCellTrafficManager::getCqiFromTable(double snr)
{
for (unsigned int i=0; i<16; i++)
{
if (snr < nrCqiTable[i])
return i-1;
}
return 15;
}

BackgroundCellTrafficManager::BackgroundCellTrafficManager()
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/nodes/backgroundCell/BackgroundCellTrafficManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class BackgroundCellTrafficManager : public BackgroundTrafficManager
// reference to class AMC for this cell
BackgroundCellAmc* bgAmc_;

static double nrCqiTable[16];
double getCqiFromTable(double snr);

public:
BackgroundCellTrafficManager();
virtual ~BackgroundCellTrafficManager();
Expand Down

0 comments on commit 3494242

Please sign in to comment.