Use full preamble for frequency estimation

This commit is contained in:
Thomas Kolb 2024-06-08 01:57:43 +02:00 committed by Simon Ruderich
parent 26a2558535
commit fd17ef3c1e

View file

@ -88,7 +88,7 @@ static bool acquire_preamble(layer1_rx_t *rx, const float complex sample, bool d
rx->packet_debug_info.preamble_correlation_peak = abs_corr_out; rx->packet_debug_info.preamble_correlation_peak = abs_corr_out;
float phase_offset; float phase_offset;
float mean_frequency_error = correlator_get_mean_frequency_deviation(&rx->preamble_correlator, FREQ_EST_L, &phase_offset); float mean_frequency_error = correlator_get_mean_frequency_deviation(&rx->preamble_correlator, preamble_get_symbol_count(), &phase_offset);
LOG(LVL_DEBUG, "@%zu: Phase offset: %.6f rad", rx->sample_index, phase_offset); LOG(LVL_DEBUG, "@%zu: Phase offset: %.6f rad", rx->sample_index, phase_offset);
LOG(LVL_DEBUG, "@%zu: Preamble frequency deviation: %.6f rad/symbol", rx->sample_index, mean_frequency_error); LOG(LVL_DEBUG, "@%zu: Preamble frequency deviation: %.6f rad/symbol", rx->sample_index, mean_frequency_error);