mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 17:19:29 +00:00
Close Call should be more accurate
Merged close call and wideband spectrum baseband processors
This commit is contained in:
@@ -83,6 +83,7 @@ public:
|
||||
DTMFTXConfig = 39,
|
||||
ADSBConfigure = 40,
|
||||
JammerConfigure = 41,
|
||||
WidebandSpectrumConfig = 42,
|
||||
|
||||
POCSAGPacket = 50,
|
||||
|
||||
@@ -232,6 +233,21 @@ public:
|
||||
Mode mode { Mode::Stopped };
|
||||
};
|
||||
|
||||
class WidebandSpectrumConfigMessage : public Message {
|
||||
public:
|
||||
constexpr WidebandSpectrumConfigMessage (
|
||||
size_t sampling_rate,
|
||||
size_t trigger
|
||||
) : Message { ID::WidebandSpectrumConfig },
|
||||
sampling_rate { sampling_rate },
|
||||
trigger { trigger }
|
||||
{
|
||||
}
|
||||
|
||||
size_t sampling_rate { 0 };
|
||||
size_t trigger { 0 };
|
||||
};
|
||||
|
||||
struct ChannelSpectrum {
|
||||
std::array<uint8_t, 256> db { { 0 } };
|
||||
uint32_t sampling_rate { 0 };
|
||||
|
||||
@@ -72,7 +72,6 @@ constexpr image_tag_t image_tag_tpms { 'P', 'T', 'P', 'M' };
|
||||
constexpr image_tag_t image_tag_pocsag { 'P', 'P', 'O', 'C' };
|
||||
constexpr image_tag_t image_tag_wfm_audio { 'P', 'W', 'F', 'M' };
|
||||
constexpr image_tag_t image_tag_wideband_spectrum { 'P', 'S', 'P', 'E' };
|
||||
constexpr image_tag_t image_tag_closecall { 'P', 'C', 'L', 'C' };
|
||||
|
||||
constexpr image_tag_t image_tag_jammer { 'P', 'J', 'A', 'M' };
|
||||
constexpr image_tag_t image_tag_audio_tx { 'P', 'A', 'T', 'X' };
|
||||
|
||||
Reference in New Issue
Block a user