diff options
author | Piotr Krysik <perper@o2.pl> | 2009-04-30 19:07:08 +0200 |
---|---|---|
committer | Piotr Krysik <perper@o2.pl> | 2009-04-30 19:07:08 +0200 |
commit | 5027749b23b0b4a49d166aee6712b7de01a3d54c (patch) | |
tree | 8ff7935aa5b9678deff2534037ad4376a57aa520 /src/lib/gsm_receiver_cf.h | |
parent | 961ff106d137b744eeafae55c939a5524370267b (diff) |
liettle changes to fcch search, commit before test to find reason of bad behavior when OSR value is changed
Diffstat (limited to 'src/lib/gsm_receiver_cf.h')
-rw-r--r-- | src/lib/gsm_receiver_cf.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/gsm_receiver_cf.h b/src/lib/gsm_receiver_cf.h index ccc99fb..d4e26e5 100644 --- a/src/lib/gsm_receiver_cf.h +++ b/src/lib/gsm_receiver_cf.h @@ -25,8 +25,8 @@ #include <gr_block.h> #include <gr_complex.h> #include <gr_feval.h> -#include <boost/circular_buffer.hpp> #include <gsm_constants.h> +#include <vector> class gsm_receiver_cf; @@ -43,8 +43,7 @@ class gsm_receiver_cf; * As a convention, the _sptr suffix indicates a boost::shared_ptr */ typedef boost::shared_ptr<gsm_receiver_cf> gsm_receiver_cf_sptr; - -typedef boost::circular_buffer<float> circular_buffer_float; +typedef std::vector<gr_complex> vector_complex; /*! * \brief Return a shared_ptr to a new instance of gsm_receiver_cf. @@ -75,12 +74,11 @@ class gsm_receiver_cf : public gr_block int d_fcch_start_pos; float d_freq_offset; double d_best_sum; - - int d_fcch_count; - bool d_first; -// int d_fcch_count; -// double d_x_temp, d_x2_temp, d_mean; + int d_fcch_count; //!!! + double d_x_temp, d_x2_temp, d_mean;//!! + + vector_complex d_channel_imp_resp; enum states { first_fcch_search, next_fcch_search, sch_search, read_bcch @@ -96,7 +94,7 @@ class gsm_receiver_cf : public gr_block bool find_sch_burst(const gr_complex *in, const int nitems , float *out); void gmsk_mapper(const int * input, gr_complex * gmsk_output, int ninput); - gr_complex correlation(const gr_complex * sequence, const gr_complex * input_signal, int ninput); + gr_complex correlate_sequence(const gr_complex * sequence, const gr_complex * input_signal, int ninput); public: |