Added EPAR transmit (slow FSK), bit bug for now

This commit is contained in:
furrtek
2016-05-13 09:34:15 +02:00
parent 9149508c83
commit 7267de234d
20 changed files with 548 additions and 12 deletions
+4 -4
View File
@@ -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);