From 049acdea9bc6972bd26b3b210057cc163753f81f Mon Sep 17 00:00:00 2001 From: HTotoo Date: Fri, 8 Dec 2023 22:12:29 +0100 Subject: [PATCH] Rename --- firmware/baseband/proc_weather.cpp | 4 ++-- firmware/baseband/proc_weather.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/baseband/proc_weather.cpp b/firmware/baseband/proc_weather.cpp index e91a9bd19..cd6095637 100644 --- a/firmware/baseband/proc_weather.cpp +++ b/firmware/baseband/proc_weather.cpp @@ -47,10 +47,10 @@ void WeatherProcessor::execute(const buffer_c8_t& buffer) { tm += mag; if (meashl == currentHiLow && currentDuration < 10'000'000) // allow pass 'end' signal { - if (currentDuration < UINT32_MAX) currentDuration += usperTick; + if (currentDuration < UINT32_MAX) currentDuration += nsPerDecSamp; } else { // called on change, so send the last duration and dir. if (protoList) protoList->feed(currentHiLow, currentDuration / 1000); - currentDuration = usperTick; + currentDuration = nsPerDecSamp; currentHiLow = meashl; } } diff --git a/firmware/baseband/proc_weather.hpp b/firmware/baseband/proc_weather.hpp index a01119c62..99f991928 100644 --- a/firmware/baseband/proc_weather.hpp +++ b/firmware/baseband/proc_weather.hpp @@ -41,9 +41,9 @@ class WeatherProcessor : public BasebandProcessor { void on_message(const Message* const message) override; private: - static constexpr size_t baseband_fs = 4'000'000; // it works, I think we need to write that master clock in the baseband_threat , even later we decimate it. - static constexpr uint32_t usperTick = 500 * 8; // In current sw , we do not scale it due to clock. We scaled it due to less array buffer sampes due to /8 decimation. - // TODO , Pending to investigate , why ticks are not proportional to the SR clock, 500 nseg (2Mhz) , 250 nseg (4Mhz) ??? ;previous comment : "we nees ms to has to divide by 1000" + static constexpr size_t baseband_fs = 4'000'000; // it works, I think we need to write that master clock in the baseband_threat , even later we decimate it. + static constexpr uint32_t nsPerDecSamp = 500 * 8; // In current sw , we do not scale it due to clock. We scaled it due to less array buffer sampes due to /8 decimation. + // TODO , Pending to investigate , why ticks are not proportional to the SR clock, 500 nseg (2Mhz) , 250 nseg (4Mhz) ??? ;previous comment : "we nees ms to has to divide by 1000" /* Array Buffer aux. used in decim0 and decim1 IQ c16 signed data ; (decim0 defines the max length of the array) */ std::array dst{}; // decim0 /4 , 2048/4 = 512 complex I,Q