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:
Anton Ottosson
2021-07-09 21:54:38 +02:00
parent 4a3f387d6d
commit 228d1b1bcc
4 changed files with 15 additions and 8 deletions
+4 -5
View File
@@ -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;
}
+1 -1
View File
@@ -33,7 +33,7 @@ public:
static const gr_complex POLARITY[127];
const gr_complex* get_csi();
std::vector<gr_complex> get_csi();
protected:
static const gr_complex LONG[64];