coarse_delay_est.h

来自「终于找到了bpsk信号的调制」· C头文件 代码 · 共 83 行

H
83
字号
//
//  File = coarse_delay_est.h
//

#ifndef _COARSE_DELAY_EST_H_
#define _COARSE_DELAY_EST_H_

//#include "intsig.h"
#include "signal_T.h"
#include "control_T.h"
#include "psmodel.h"
#include "aux_sig_buf.h"

class CoarseDelayEstimator : public PracSimModel
{
public:
  CoarseDelayEstimator( char* instance_name,
                  PracSimModel* outer_model,
                  Signal<float>* in_sig,
                  Signal<float>* ref_sig,
                  Signal<float>* out_sig,
                  Control<bool>* dly_est_is_valid_cntl,
                  Control<float>* delay_at_max_corr,
                  Control<int>* samps_delay_at_max_corr );

  ~CoarseDelayEstimator(void);
  void Initialize(void);
  int Execute(void);

private:
  int Proc_Block_Size;
  double Samp_Intvl;

  // correlation array - contains In_Sig
  // values and is padded out with zeros
  std::complex<float> *X;

  // correlation array - contains Ref_Sig
  // values and is padded out with zeros
  std::complex<float> *Y;

  // an array of zeros used to quickly
  // pad the ends of X and Y with zeros
  std::complex<float> *Zero_Array;

  std::complex<float> Max_Corr;
  float Max_Corr_Angle;
  float Max_Corr_Time;

  int Full_Corr_Size;
  int Search_Window_Beg;
  int Search_Window_End;
  int Neg_Window_Beg;
  int Neg_Window_End;
  int Pos_Window_Beg;
  int Pos_Window_End;
  bool Invert_Input_Sig_Enab;
  bool Limited_Search_Window_Enab;
  int Smoothing_Sidelobe_Len;
  std::complex<float> *Diff_Response;

  AuxSignalBuffer<float> *In_Sig_Buf;
  AuxSignalBuffer<float> *Ref_Sig_Buf;

  int Size_Of_FComplex;

  double Ns_Exp;
  Signal<float> *In_Sig;
  Signal<float> *Out_Sig;
  Signal<float> *Ref_Sig;
  Control<float> *Delay_At_Max_Corr;
  Control<int> *Samps_Delay_At_Max_Corr;
  Control<float> *Max_Corr_Out;
  Control<bool> *Dly_Est_Is_Valid_Cntl;
  

  int Num_Corr_Passes;
  int Corr_Pass_Count;
  ofstream *Spectrum_File;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?