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

View File

@ -72,7 +72,7 @@ SubGhzDView::SubGhzDView(NavigationView& nav)
&button_clear_list,
&recent_entries_view});
baseband::run_image(portapack::spi_flash::image_tag_weather);
baseband::run_image(portapack::spi_flash::image_tag_subghzd);
button_clear_list.on_select = [this](Button&) {
recent.clear();

View File

@ -96,7 +96,7 @@ WeatherView::WeatherView(NavigationView& nav)
&button_clear_list,
&recent_entries_view});
baseband::run_image(portapack::spi_flash::image_tag_weather);
baseband::run_image(portapack::spi_flash::image_tag_subghzd);
button_clear_list.on_select = [this](Button&) {
recent.clear();

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

View File

@ -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"

View File

@ -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

View File

@ -112,7 +112,7 @@ constexpr image_tag_t image_tag_tones{'P', 'T', 'O', 'N'};
constexpr image_tag_t image_tag_flash_utility{'P', 'F', 'U', 'T'};
constexpr image_tag_t image_tag_usb_sd{'P', 'U', 'S', 'B'};
constexpr image_tag_t image_tag_weather{'P', 'W', 'T', 'H'};
constexpr image_tag_t image_tag_subghzd{'P', 'W', 'T', 'H'};
constexpr image_tag_t image_tag_noop{'P', 'N', 'O', 'P'};