[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] gnuradio-core/src/lib/general gr_pwr_squelch_cc.cc
From: |
Johnathan Corgan |
Subject: |
[Commit-gnuradio] gnuradio-core/src/lib/general gr_pwr_squelch_cc.cc |
Date: |
Sun, 18 Jun 2006 07:06:31 +0000 |
CVSROOT: /sources/gnuradio
Module name: gnuradio-core
Changes by: Johnathan Corgan <jcorgan> 06/06/18 07:06:31
Modified files:
src/lib/general: gr_pwr_squelch_cc.cc
Log message:
Removed debugging statements.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc?cvsroot=gnuradio&r1=1.1&r2=1.2
Patches:
Index: gr_pwr_squelch_cc.cc
===================================================================
RCS file: /sources/gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- gr_pwr_squelch_cc.cc 18 Jun 2006 06:52:46 -0000 1.1
+++ gr_pwr_squelch_cc.cc 18 Jun 2006 07:06:31 -0000 1.2
@@ -25,7 +25,7 @@
#endif
#include <cmath>
-#include <cstdio>
+//#include <cstdio>
#include <gr_pwr_squelch_cc.h>
#include <gr_io_signature.h>
@@ -112,14 +112,14 @@
switch(d_state) {
case ST_MUTED:
if (f >= d_threshold) {
- putchar('A');
+ //putchar('A');
d_state = d_ramp ? ST_ATTACK : ST_UNMUTED; // If not ramping, go
straight to unmuted
}
break;
case ST_UNMUTED:
if (f < d_threshold) {
- putchar('D');
+ //putchar('D');
d_state = d_ramp ? ST_DECAY : ST_MUTED; // If not ramping, go
straight to muted
}
break;
@@ -127,7 +127,7 @@
case ST_ATTACK:
d_envelope = 0.5-std::cos(M_PI*(++d_ramped)/d_ramp)/2.0; // FIXME:
precalculate window for speed
if (d_ramped >= d_ramp) { // use >= in case d_ramp
is set to lower value elsewhere
- putchar('a');
+ //putchar('a');
d_state = ST_UNMUTED;
d_envelope = 1.0;
}
@@ -137,7 +137,7 @@
d_envelope = 0.5-std::cos(M_PI*(d_ramp-(--d_ramped))/d_ramp)/2.0; //
FIXME: precalculate window for speed
if (d_ramped == 0) {
d_state = ST_MUTED;
- putchar('d');
+ //putchar('d');
}
break;
};
- [Commit-gnuradio] gnuradio-core/src/lib/general gr_pwr_squelch_cc.cc,
Johnathan Corgan <=