mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 16:49:36 +00:00
Renamed proc_weather, bc now multifunctional
This commit is contained in:
@@ -72,7 +72,7 @@ SubGhzDView::SubGhzDView(NavigationView& nav)
|
|||||||
&button_clear_list,
|
&button_clear_list,
|
||||||
&recent_entries_view});
|
&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&) {
|
button_clear_list.on_select = [this](Button&) {
|
||||||
recent.clear();
|
recent.clear();
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ WeatherView::WeatherView(NavigationView& nav)
|
|||||||
&button_clear_list,
|
&button_clear_list,
|
||||||
&recent_entries_view});
|
&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&) {
|
button_clear_list.on_select = [this](Button&) {
|
||||||
recent.clear();
|
recent.clear();
|
||||||
|
|||||||
@@ -550,12 +550,12 @@ set(MODE_CPPSRC
|
|||||||
)
|
)
|
||||||
DeclareTargets(PWFM wfm_audio)
|
DeclareTargets(PWFM wfm_audio)
|
||||||
|
|
||||||
### Weather Stations
|
### SubGhz Decoders + Weather Stations
|
||||||
|
|
||||||
set(MODE_CPPSRC
|
set(MODE_CPPSRC
|
||||||
proc_weather.cpp
|
proc_subghzd.cpp
|
||||||
)
|
)
|
||||||
DeclareTargets(PWTH weather)
|
DeclareTargets(PWTH subghzd)
|
||||||
|
|
||||||
|
|
||||||
### Flash Utility
|
### Flash Utility
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
* Boston, MA 02110-1301, USA.
|
* Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "proc_weather.hpp"
|
#include "proc_subghzd.hpp"
|
||||||
#include "portapack_shared_memory.hpp"
|
#include "portapack_shared_memory.hpp"
|
||||||
#include "event_m4.hpp"
|
#include "event_m4.hpp"
|
||||||
|
|
||||||
@@ -41,8 +41,8 @@ class WeatherProcessor : public BasebandProcessor {
|
|||||||
void on_message(const Message* const message) override;
|
void on_message(const Message* const message) override;
|
||||||
|
|
||||||
private:
|
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 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 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) */
|
/* 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
|
std::array<complex16_t, 512> dst{}; // decim0 /4 , 2048/4 = 512 complex I,Q
|
||||||
@@ -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_flash_utility{'P', 'F', 'U', 'T'};
|
||||||
constexpr image_tag_t image_tag_usb_sd{'P', 'U', 'S', 'B'};
|
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'};
|
constexpr image_tag_t image_tag_noop{'P', 'N', 'O', 'P'};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user