Remove baseband stats tracking code.

It was half-baked, and is getting in the way of a major refactoring.
This commit is contained in:
Jared Boone 2016-06-24 15:24:26 -07:00
parent d41c6ee36a
commit 9444d21c12
3 changed files with 1 additions and 20 deletions

View file

@ -24,7 +24,6 @@
#include "dsp_types.hpp"
#include "baseband.hpp"
#include "baseband_stats_collector.hpp"
#include "baseband_sgpio.hpp"
#include "baseband_dma.hpp"
@ -94,13 +93,6 @@ void BasebandThread::run() {
);
//baseband::dma::allocate(4, 2048);
BasebandStatsCollector stats {
chSysGetIdleThread(),
thread_main,
thread_rssi,
chThdSelf()
};
while(true) {
// TODO: Place correct sampling rate into buffer returned here:
const auto buffer_tmp = baseband::dma::wait_for_rx_buffer();
@ -112,13 +104,6 @@ void BasebandThread::run() {
if( baseband_processor ) {
baseband_processor->execute(buffer);
}
stats.process(buffer,
[](const BasebandStatistics& statistics) {
const BasebandStatisticsMessage message { statistics };
shared_memory.application_queue.push(message);
}
);
}
}
}