mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 00:59:28 +00:00
Added EPAR transmit (slow FSK), bit bug for now
This commit is contained in:
@@ -43,7 +43,7 @@ void XylosProcessor::execute(const buffer_c8_t& buffer) {
|
||||
s = 0;
|
||||
|
||||
if (sample_count >= CCIR_TONELENGTH) {
|
||||
if (shared_memory.xylos_transmit_done == false) {
|
||||
if (shared_memory.transmit_done == false) {
|
||||
message.n = byte_pos; // Inform UI about progress (just as eye candy)
|
||||
shared_memory.application_queue.push(message);
|
||||
digit = shared_memory.xylosdata[byte_pos++];
|
||||
@@ -51,7 +51,7 @@ void XylosProcessor::execute(const buffer_c8_t& buffer) {
|
||||
|
||||
if (digit == 0xFF) {
|
||||
message.n = 25; // End of message code
|
||||
shared_memory.xylos_transmit_done = true;
|
||||
shared_memory.transmit_done = true;
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ void XylosProcessor::execute(const buffer_c8_t& buffer) {
|
||||
sample_count++;
|
||||
}
|
||||
|
||||
aphase += ccir_phases[digit]; // DEBUG
|
||||
aphase += ccir_phases[digit];
|
||||
} else {
|
||||
s++;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ void XylosProcessor::execute(const buffer_c8_t& buffer) {
|
||||
}*/
|
||||
|
||||
//FM
|
||||
frq = sample * 1000; // ~10kHz wide
|
||||
frq = sample * 1000; // ~25kHz wide
|
||||
|
||||
phase = (phase + frq);
|
||||
sphase = phase + (256<<16);
|
||||
|
||||
Reference in New Issue
Block a user