OutputStream (file M0 -> M4 radio) now works

Disabled numbers station for now (too buggy, low priority)
This commit is contained in:
furrtek
2017-06-23 08:40:22 +01:00
parent c922a56b6d
commit 33a2df9d2a
15 changed files with 48 additions and 30 deletions

View File

@@ -63,7 +63,7 @@ void ReplayProcessor::on_message(const Message* const message) {
channel_spectrum.on_message(message);
break;*/
case Message::ID::CaptureConfig:
case Message::ID::ReplayConfig:
replay_config(*reinterpret_cast<const ReplayConfigMessage*>(message));
break;

View File

@@ -41,7 +41,7 @@ public:
private:
// TODO: Repeated value needs to be transmitted from application side.
static constexpr size_t baseband_fs = 500000;
static constexpr size_t baseband_fs = 1000000;
//static constexpr auto spectrum_rate_hz = 50.0f;
BasebandThread baseband_thread { baseband_fs, this, NORMALPRIO + 20, baseband::Direction::Transmit };

View File

@@ -55,7 +55,6 @@ size_t StreamOutput::read(void* const data, const size_t length) {
const auto remaining = length - read;
read += active_buffer->read(&p[read], remaining);
//buffer->empty();
if( active_buffer->is_empty() ) {
if( !fifo_buffers_empty.in(active_buffer) ) {