aboutsummaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OfdmGenerator.h')
-rw-r--r--src/OfdmGenerator.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/OfdmGenerator.h b/src/OfdmGenerator.h
index 008d84e..cccccf5 100644
--- a/src/OfdmGenerator.h
+++ b/src/OfdmGenerator.h
@@ -30,13 +30,14 @@
# include "config.h"
#endif
-#include "porting.h"
#include "ModPlugin.h"
#include "RemoteControl.h"
+#include "PAPRStats.h"
#include "fftw3.h"
-#include <sys/types.h>
+#include <cstddef>
#include <vector>
#include <complex>
+#include <atomic>
typedef std::complex<float> complexf;
@@ -102,6 +103,11 @@ class OfdmGenerator : public ModCodec, public RemoteControllable
std::deque<double> myClipRatios;
std::deque<double> myErrorClipRatios;
+ // Measure PAPR before and after CFR
+ PAPRStats myPaprBeforeCFR;
+ PAPRStats myPaprAfterCFR;
+ std::atomic<bool> myPaprClearRequest;
+
size_t myMERCalcIndex = 0;
std::deque<double> myMERs;
};