Started work on APRS (AX25)

This commit is contained in:
furrtek
2017-05-25 21:08:33 +01:00
parent a35d9ee8a9
commit 8e99bccd41
21 changed files with 515 additions and 6220 deletions

View File

@@ -448,7 +448,7 @@ set(BASEBAND_IMAGES ${BASEBAND_IMAGES} terminator.img)
#######################################################################
project(baseband)
add_custom_command(
OUTPUT ${PROJECT_NAME}.img
COMMAND cat ${BASEBAND_IMAGES} > ${PROJECT_NAME}.img

Binary file not shown.

View File

@@ -37,10 +37,10 @@ void ADSBTXProcessor::execute(const buffer_c8_t& buffer) {
for (size_t i = 0; i < buffer.count; i++) {
if (!sample) {
sample = 3;
if (active) {
if (active) {
if (!sample) {
sample = 3;
if (preamble) {
if (bit_pos >= 16) {
preamble = false;
@@ -60,20 +60,20 @@ void ADSBTXProcessor::execute(const buffer_c8_t& buffer) {
bit_pos++;
}
}
} else {
//cur_bit = 0;
if (bit_pos == 8192) { // ?
configured = false;
message.done = true;
shared_memory.application_queue.push(message);
}
bit_pos++;
} else
sample--;
if (sample == 1)
cur_bit ^= 1; // Invert
} else {
//cur_bit = 0;
if (bit_pos == 8192) { // ?
configured = false;
message.done = true;
shared_memory.application_queue.push(message);
}
} else
sample--;
if (sample == 1)
cur_bit ^= 1; // Invert
bit_pos++;
}
delta = tone_sample * fm_delta;
tone_sample += 128;

Binary file not shown.