Added back frequency display for CTCSS

Attempted to fix replay, just fixed StreamBuffer read() and added
waterfall display...
Updated binary
This commit is contained in:
furrtek
2017-12-06 13:20:51 +00:00
parent d77337dd77
commit 3221992ad1
18 changed files with 133 additions and 54 deletions

View File

@@ -43,21 +43,28 @@ public:
private:
static constexpr size_t baseband_fs = 4000000;
//static constexpr auto spectrum_rate_hz = 50.0f;
static constexpr auto spectrum_rate_hz = 50.0f;
BasebandThread baseband_thread { baseband_fs, this, NORMALPRIO + 20, baseband::Direction::Transmit };
std::array<complex16_t, 256> iq { }; // This fits in just right in allocated RAM
std::array<complex16_t, 256> iq { }; // This fits in just right in allocated RAM - Too big ?
const buffer_c16_t iq_buffer {
iq.data(),
iq.size()
};
uint32_t channel_filter_pass_f = 0;
uint32_t channel_filter_stop_f = 0;
// DEBUG
//uint32_t tone_phase { 0 }, phase { 0 }, delta { 0 }, sphase { 0 };
//int8_t sample { 0 };
std::unique_ptr<StreamOutput> stream { };
/*SpectrumCollector channel_spectrum;
SpectrumCollector channel_spectrum { };
size_t spectrum_interval_samples = 0;
size_t spectrum_samples = 0;*/
size_t spectrum_samples = 0;
void replay_config(const ReplayConfigMessage& message);
};