From 9e2bd4fe55444c17352bfb1d2575525f485d5679 Mon Sep 17 00:00:00 2001 From: proto17 Date: Mon, 5 Sep 2022 12:23:18 -0400 Subject: [PATCH] Removed unnecessary seek into the ZC sym for CFO It was pointed out that the additional 6 sample seek wasn't necessary. Tested with a HackRF and DJI Mini 2 to validate. --- matlab/updated_scripts/process_file.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matlab/updated_scripts/process_file.m b/matlab/updated_scripts/process_file.m index d08a9b6..f1c5813 100644 --- a/matlab/updated_scripts/process_file.m +++ b/matlab/updated_scripts/process_file.m @@ -193,7 +193,8 @@ for burst_idx=1:size(bursts, 1) % Get the expected starting index of the symbol to be used for CFO estimation zc_start = long_cp_len + (fft_size * 3) + (short_cp_len * 3); - zc_start = zc_start + 6; + + % Extract out the full OFDM symbol (cyclic prefix included) cfo_est_symbol = burst(zc_start - short_cp_len:zc_start + fft_size - 1); % Get the cyclic prefix, and then the copy of the cyclic prefix that exists at the end of the OFDM symbol @@ -336,4 +337,4 @@ for idx=1:size(bursts, 1) frame = frames{idx}; fprintf('FRAME: %s', frame); -end \ No newline at end of file +end