diff options
author | Tom Rondeau <trondeau@vt.edu> | 2011-07-30 15:59:44 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2011-07-30 15:59:44 -0400 |
commit | a6fa43a9075e5123c741090622c80598a7e84c3a (patch) | |
tree | 062d89de86bbee5837d5a0d28ce8977200a87a33 /gr-digital/swig | |
parent | 6876cd276ed2e3f74161b2301f33941218fc7882 (diff) |
digital: updated Costas loop again. The damping factor is now set by default and is no longer part of the constructor. All variables are exposed in gets and sets, though, for any purposes.
Diffstat (limited to 'gr-digital/swig')
-rw-r--r-- | gr-digital/swig/digital_costas_loop_cc.i | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gr-digital/swig/digital_costas_loop_cc.i b/gr-digital/swig/digital_costas_loop_cc.i index 6d3d009f8a..f6e2765626 100644 --- a/gr-digital/swig/digital_costas_loop_cc.i +++ b/gr-digital/swig/digital_costas_loop_cc.i @@ -23,22 +23,27 @@ GR_SWIG_BLOCK_MAGIC(digital,costas_loop_cc); digital_costas_loop_cc_sptr -digital_make_costas_loop_cc (float damping, float nat_freq, - int order +digital_make_costas_loop_cc (float loop_bw, int order ) throw (std::invalid_argument); class digital_costas_loop_cc : public gr_sync_block { private: - digital_costas_loop_cc (float damping, float nat_freq, - int order); + digital_costas_loop_cc (float loop_bw, int order); public: - float alpha(); - float beta(); - float freq(); + void set_loop_bandwidth(float bw); + void set_damping_factor(float df); + void set_alpha(float alpha); + void set_beta(float beta); + void set_frequency(float freq); + void set_phase(float phase); - void set_natural_freq(float w); - void set_damping_factor(float eta); + float get_loop_bandwidth() const; + float get_damping_factor() const; + float get_alpha() const; + float get_beta() const; + float get_frequency() const; + float get_phase() const; }; |