Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
David Protzman a58848eaff Merge branch 'main' of https://github.com/proto17/dji_droneid into main 2022-08-28 09:36:00 -04:00
David Protzman 5f319c4cc4 Moved files around to prevent clutter
Files that are not currently being used have been moved to unused_scripts
2022-08-28 09:34:45 -04:00
David Protzman deb0be39c2 Removed normalization requirement
There's no reason it must be normalized, and Octave doesn't support normalization with xcorr
2022-08-28 09:21:18 -04:00
15 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ function [start_offset] = find_sto_cp(samples, sample_rate)
right = window(end - cp_len + 1:end);
% Correlate the two windows
scores(cp_idx) = abs(xcorr(left, right, 0, 'normalized'));
scores(cp_idx) = abs(xcorr(left, right, 0));
% Move the sample pointer forward by the full symbol size
offset = offset + cp_len + fft_size;