Now getting sample count of input file for bounds checking

gr-droneid-3.8
David Protzman 2022-04-19 17:35:54 -04:00
rodzic 7eff1d4c40
commit cbcea2db15
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -18,6 +18,8 @@
function [bursts] = extract_bursts_from_file(input_path, sample_rate, frequency_offset, correlation_threshold,...
chunk_size, padding)
num_samples = get_sample_count_of_file(input_path);
lte_carrier_spacing = 15e3; % OFDM carrier spacing
fft_size = sample_rate / lte_carrier_spacing; % Number of samples per OFDM symbol (minus cyclic prefix)
long_cp_len = round(1/192000 * sample_rate); % Number of samples in the long cyclic prefix