Add beta and csi to decode_mac PDU output.
Also changed to using `std::vector<gr_complex>` type because it was becoming more and more inconvenient to use c-style arrays.
This commit is contained in:
@@ -41,15 +41,14 @@ const gr_complex base::POLARITY[127] = {
|
||||
-1,-1,-1,-1,-1, 1,-1, 1, 1,-1, 1,-1, 1, 1, 1,-1,
|
||||
-1, 1,-1,-1,-1, 1, 1, 1,-1,-1,-1,-1,-1,-1,-1 };
|
||||
|
||||
const gr_complex* base::get_csi() {
|
||||
static gr_complex csi[52];
|
||||
int j = 0;
|
||||
std::vector<gr_complex> base::get_csi() {
|
||||
std::vector<gr_complex> csi;
|
||||
csi.reserve(52);
|
||||
for (int i = 0; i < 64; i++) {
|
||||
if ((i == 32) || (i < 6) || (i > 58)) {
|
||||
continue;
|
||||
}
|
||||
csi[j] = d_H[i];
|
||||
j++;
|
||||
csi.push_back(d_H[i]);
|
||||
}
|
||||
return csi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user