mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Started work on APRS (AX25)
This commit is contained in:
parent
a35d9ee8a9
commit
8e99bccd41
21 changed files with 515 additions and 6220 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue