Added frequency manager skeleton, LCR alt encoding, GPS jammer

This commit is contained in:
furrtek
2016-07-25 16:21:27 +02:00
parent e15f659a6a
commit 966a758a0b
31 changed files with 485 additions and 110 deletions
+3 -11
View File
@@ -31,23 +31,15 @@
#include "audio_output.hpp"
#include "baseband_processor.hpp"
#define CCIR_TONELENGTH 15360-1 // 1536000/10/10
#define PHASEV 436.91 // (65536*1024)/1536000*10
#define SILENCE 61440-1 // 400ms
#define CCIR_TONELENGTH (15360*2)-1 // 1536000/10/10
#define PHASEV (436.91/2) // (65536*1024)/1536000*10
#define SILENCE (46080*2)-1 // 400ms
class XylosProcessor : public BasebandProcessor {
public:
void execute(const buffer_c8_t& buffer) override;
private:
/*int16_t audio_data[64];
std::array<int16_t, 64> audio;
const buffer_s16_t audio_buffer {
audio.data(),
audio.size()
};*/
uint32_t ccir_phases[16] = {
(uint32_t)(1981*PHASEV),
(uint32_t)(1124*PHASEV),