mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 00:59:28 +00:00
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:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user