kopia lustrzana https://github.com/proto17/dji_droneid
Warning the user if correlation threshold > 1.0
Now that the xcorr is truly normalized, there's no good reason to go above 1.0pull/31/head
rodzic
388d4acd7b
commit
46b2c4dad5
|
@ -37,6 +37,10 @@ function [bursts] = extract_bursts_from_file(input_path, sample_rate, frequency_
|
||||||
assert(padding >= 0, "Padding must be >= 0");
|
assert(padding >= 0, "Padding must be >= 0");
|
||||||
assert(mod(length(varargin), 2) == 0, "Varargs length must be a multiple of 2");
|
assert(mod(length(varargin), 2) == 0, "Varargs length must be a multiple of 2");
|
||||||
|
|
||||||
|
if (correlation_threshold > 1.0)
|
||||||
|
warning("Correlation threshold is greater than 1.0. This is likely going to cause the correlation to fail!");
|
||||||
|
end
|
||||||
|
|
||||||
% Default the type of each I and Q value to 32-bit floating point
|
% Default the type of each I and Q value to 32-bit floating point
|
||||||
sample_type = 'single';
|
sample_type = 'single';
|
||||||
correlation_fig_num = -1;
|
correlation_fig_num = -1;
|
||||||
|
|
Ładowanie…
Reference in New Issue