# HG changeset patch # User pfh1976@gmail.com # Date 1333977748 0 # Node ID df22068a5b55a956610ecd7a81164bad2cc92bae # Parent 5a5fc3a6051b28afae7a26c76652ca60b9c0fe9e Compute member detect_scale_ in AGC_coefficients diff -r 5a5fc3a6051b -r df22068a5b55 src/AGC.cpp --- a/src/AGC.cpp Mon Apr 09 09:43:02 2012 +0000 +++ b/src/AGC.cpp Mon Apr 09 13:22:28 2012 +0000 @@ -80,8 +80,7 @@ agc_mix_coeffs_[stage] = AGC_params->agc_mix_coeff_/(tau * (fs/decim)); } agc_gain_ = total_DC_gain; - - // TODO Computation of the detect_scale_ member + detect_scale_ = AGC_params->detect_scale_/total_DC_gain; } AGC_coefficients::~AGC_coefficients(){ // TODO Auto-generated destructor stub