added comment explaining that we evenly distribute PUCCH resources between SR and CQI

This commit is contained in:
Francisco Paisana 2020-08-25 11:45:18 +01:00
parent 68acad25c6
commit 78a3370396
1 changed files with 2 additions and 0 deletions

View File

@ -359,6 +359,8 @@ int field_sf_mapping::parse(libconfig::Setting& root)
sf_mapping[i] = root["subframe"][i];
}
} else {
// Note: By default we evenly distribute PUCCH resources between SR/CQI.
// The default SR resources will be {0, 2, 4, ...}, while the CQI will be {1, 3, 5, ...}.
*nof_subframes = static_cast<uint32_t>(root["period"]) / 2;
for (uint32_t i = 0; i < *nof_subframes; i++) {
sf_mapping[i] = i * 2 + default_offset;