- Squelch: added init value
git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@511 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -30,21 +30,21 @@ namespace gr {
|
||||
namespace jay {
|
||||
|
||||
squelch::sptr
|
||||
squelch::make()
|
||||
squelch::make(float initValue)
|
||||
{
|
||||
return gnuradio::get_initial_sptr
|
||||
(new squelch_impl());
|
||||
(new squelch_impl(initValue));
|
||||
}
|
||||
|
||||
/*
|
||||
* The private constructor
|
||||
*/
|
||||
|
||||
squelch_impl::squelch_impl()
|
||||
squelch_impl::squelch_impl(float initValue)
|
||||
: gr::sync_block("squelch",
|
||||
gr::io_signature::make(1, 1, sizeof(float)),
|
||||
gr::io_signature::make(1, 1, sizeof(float)))
|
||||
, m_gain_target(1.0f)
|
||||
, m_gain_target(initValue)
|
||||
, m_gain(0.0f)
|
||||
{
|
||||
m_msg_port_in = pmt::mp("control");
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace gr {
|
||||
float m_gain;
|
||||
|
||||
public:
|
||||
squelch_impl();
|
||||
squelch_impl(float initValue);
|
||||
~squelch_impl();
|
||||
void print_pair(pmt::pmt_t pair);
|
||||
void on_message(pmt::pmt_t msg);
|
||||
|
||||
Reference in New Issue
Block a user