Rotate 2nd frequency for HORUS_V2 (not continously)

pull/65/merge^2
Wolfgang Hallmann 2023-10-12 14:14:23 +02:00
rodzic 8819d786b3
commit 9676921399
2 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -146,6 +146,9 @@
// Use a frequency offset to place FSK tones slightly above the defined frequency for SSB reception
#define RADIO_SI4032_TX_FREQUENCY_HORUS_V1 432501000
#define RADIO_SI4032_TX_FREQUENCY_HORUS_V2 432501000
// Use a rotating alternate 2nd frequency for HORUS_V2 (not continously)
#define RADIO_SI4032_TX_FREQUENCY2_HORUS_V2_ACTIV false
#define RADIO_SI4032_TX_FREQUENCY2_HORUS_V2 437600000
/**
* External Si5351 radio chip transmission configuration

Wyświetl plik

@ -319,6 +319,7 @@ static volatile uint32_t radio_post_transmit_delay_counter = 0;
static volatile uint32_t radio_next_symbol_counter = 0;
static radio_transmit_entry *radio_start_transmit_entry = NULL;
static uint8_t radio_alternate_frequency = 1;
static uint32_t radio_previous_time_sync_scheduled = 0;
@ -655,6 +656,20 @@ static void radio_next_transmit_entry()
do {
radio_current_transmit_entry_index = (radio_current_transmit_entry_index + 1) % radio_transmit_entry_count;
radio_current_transmit_entry = &radio_transmit_schedule[radio_current_transmit_entry_index];
// If this queue entry is enabled and its HORUS_V2 and 2nd frequency enabled then rotate frequencies each TX
if (radio_current_transmit_entry->enabled) {
if (radio_current_transmit_entry->data_mode == RADIO_DATA_MODE_HORUS_V2) {
if (RADIO_SI4032_TX_FREQUENCY2_HORUS_V2_ACTIV) {
if (radio_alternate_frequency == 0) {
radio_alternate_frequency = 1;
radio_current_transmit_entry->frequency = RADIO_SI4032_TX_FREQUENCY2_HORUS_V2;
} else {
radio_alternate_frequency = 0;
radio_current_transmit_entry->frequency = RADIO_SI4032_TX_FREQUENCY_HORUS_V2;
}
}
}
}
} while (!radio_current_transmit_entry->enabled);
}