From d61f85ba6dfa64909df32e4927e7acf35f2d1d1f Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Mon, 29 Aug 2016 07:38:25 +0200 Subject: Changed method of frequency estimation --- lib/receiver/receiver_impl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/receiver/receiver_impl.h') diff --git a/lib/receiver/receiver_impl.h b/lib/receiver/receiver_impl.h index c8d71f9..eb406f3 100644 --- a/lib/receiver/receiver_impl.h +++ b/lib/receiver/receiver_impl.h @@ -36,6 +36,10 @@ namespace gr { private: unsigned int d_c0_burst_start; float d_c0_signal_dbm; + + lv_32fc_t* d_freq_estim_vector;// = (lv_32fc_t*)volk_malloc(sizeof(lv_32fc_t)*160, alignment); + lv_32fc_t* d_freq_estim_result;// = (lv_32fc_t*)volk_malloc(sizeof(lv_32fc_t)*1, alignment); + /**@name Configuration of the receiver */ //@{ const int d_OSR; ///< oversampling ratio @@ -108,6 +112,8 @@ namespace gr { */ double compute_freq_offset(const gr_complex * input, unsigned first_sample, unsigned last_sample); + double estim_freq_norm(const gr_complex * input, unsigned first_sample, unsigned last_sample); //another frequency estimator + double estim_freq_norm2(const gr_complex * input, unsigned first_sample, unsigned last_sample); //another frequency estimator /** Computes angle between two complex numbers * * @param val1 first complex number -- cgit v1.2.3