Xylos (CCIR tones) TX, jammer update, SD card mod load

Xylos TX (CCIR tones) ;)
Jammer update, still buggy and inefficient
SD card module loader update
This commit is contained in:
furrtek
2016-01-03 07:24:30 +01:00
parent 5a5a4c3525
commit 802ac496e9
28 changed files with 2272 additions and 1143 deletions
+4 -3
View File
@@ -21,6 +21,7 @@
#include "proc_fsk_lcr.hpp"
#include "portapack_shared_memory.hpp"
#include "sine_table.hpp"
#include <cstdint>
@@ -76,7 +77,7 @@ void LCRFSKProcessor::execute(buffer_c8_t buffer) {
s++;
}
//sample = sine_table_f32[(aphase & 0x00FF0000)>>16];
sample = (sine_table_f32[(aphase & 0x03FF0000)>>18]*255);
//FM
frq = sample * shared_memory.afsk_fmmod;
@@ -84,8 +85,8 @@ void LCRFSKProcessor::execute(buffer_c8_t buffer) {
phase = (phase + frq);
sphase = phase + (256<<16);
//re = sine_table_f32[(sphase & 0x00FF0000)>>16];
//im = sine_table_f32[(phase & 0x00FF0000)>>16];
re = (sine_table_f32[(sphase & 0x03FF0000)>>18]*127);
im = (sine_table_f32[(phase & 0x03FF0000)>>18]*127);
buffer.p[i] = {(int8_t)re,(int8_t)im};
}