changeset 558:8ca6eb401a03

Compute member detect_scale_ in AGC_coefficients
author pfh1976@gmail.com
date Mon, 09 Apr 2012 13:22:28 +0000
parents 0fde611fcd10
children 89b1fe5de60f
files branches/carfac_cpp/src/AGC.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/branches/carfac_cpp/src/AGC.cpp	Mon Apr 09 09:43:02 2012 +0000
+++ b/branches/carfac_cpp/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