From a3a56bc830ebc61bb7287a6c2ed62a7e0f388a27 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Fri, 3 Sep 2021 20:50:33 +0200 Subject: [PATCH] freq offset needs to be divisible by 50. use disorders/cfo if you need finer control --- encode.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/encode.cc b/encode.cc index 1e2f930..e34f710 100644 --- a/encode.cc +++ b/encode.cc @@ -329,6 +329,11 @@ int main(int argc, char **argv) return 1; } + if (freq_off % 50) { + std::cerr << "Frequency offset must be divisible by 50." << std::endl; + return 1; + } + typedef float value; typedef DSP::Complex cmplx;