added rx888

This commit is contained in:
Ryzerth
2020-11-12 00:53:38 +01:00
parent 0a5fd5c271
commit 02ae50905d
37 changed files with 6038 additions and 85 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include <dsp/block.h>
#include <volk/volk.h>
#include <spdlog/spdlog.h>
@ -138,6 +139,14 @@ namespace dsp {
volk_32fc_magnitude_32f(out.data, (lv_32fc_t*)_in->data, count);
_in->flush();
volk_32f_accumulator_s32f(&avg, out.data, count);
avg /= (float)count;
for (int i = 0; i < count; i++) {
out.data[i] -= avg;
}
out.write(count);
return count;
}
@ -145,6 +154,7 @@ namespace dsp {
stream<float> out;
private:
float avg;
int count;
stream<complex_t>* _in;