Renamed proc_weather, bc now multifunctional

This commit is contained in:
HTotoo
2023-12-09 16:47:44 +01:00
parent d2cb93d957
commit 39fabab022
6 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -550,12 +550,12 @@ set(MODE_CPPSRC
)
DeclareTargets(PWFM wfm_audio)
### Weather Stations
### SubGhz Decoders + Weather Stations
set(MODE_CPPSRC
proc_weather.cpp
proc_subghzd.cpp
)
DeclareTargets(PWTH weather)
DeclareTargets(PWTH subghzd)
### Flash Utility
@@ -20,7 +20,7 @@
* Boston, MA 02110-1301, USA.
*/
#include "proc_weather.hpp"
#include "proc_subghzd.hpp"
#include "portapack_shared_memory.hpp"
#include "event_m4.hpp"
@@ -41,8 +41,8 @@ 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 nsPerDecSamp = 250 * 8; // 10 exp9/baseband_fs * 8
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 = 1'000'000'000 / baseband_fs * 8; // 10 exp9/baseband_fs * 8
/* Array Buffer aux. used in decim0 and decim1 IQ c16 signed data ; (decim0 defines the max length of the array) */
std::array<complex16_t, 512> dst{}; // decim0 /4 , 2048/4 = 512 complex I,Q