Use full preamble for frequency estimation
This commit is contained in:
parent
26a2558535
commit
fd17ef3c1e
|
@ -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;
|
||||
|
||||
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: Preamble frequency deviation: %.6f rad/symbol", rx->sample_index, mean_frequency_error);
|
||||
|
|
Loading…
Reference in a new issue