comparison trunk/carfac/ihc_params.h @ 682:10dc41e4d2f2

More small style revisions to C++ CARFAC, adjusted struct member variable naming, header guards and #include structure.
author alexbrandmeyer
date Wed, 29 May 2013 15:37:28 +0000
parents 594b410c2aed
children
comparison
equal deleted inserted replaced
681:7def70bdd6b6 682:10dc41e4d2f2
18 // distributed under the License is distributed on an "AS IS" BASIS, 18 // distributed under the License is distributed on an "AS IS" BASIS,
19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 // See the License for the specific language governing permissions and 20 // See the License for the specific language governing permissions and
21 // limitations under the License. 21 // limitations under the License.
22 22
23 #ifndef CARFAC_Open_Source_C__Library_IHCParams_h 23 #ifndef CARFAC_IHC_PARAMS_H
24 #define CARFAC_Open_Source_C__Library_IHCParams_h 24 #define CARFAC_IHC_PARAMS_H
25 25
26 #include "carfac_common.h" 26 #include "carfac_common.h"
27 27
28 struct IHCParams { 28 struct IHCParams {
29 IHCParams() { 29 IHCParams() {
30 just_half_wave_rectify_ = false; 30 just_half_wave_rectify = false;
31 one_capacitor_ = true; 31 one_capacitor = true;
32 tau_lpf_ = 0.000080; 32 tau_lpf = 0.000080;
33 tau1_out_ = 0.0005; 33 tau1_out = 0.0005;
34 tau1_in_ = 0.010; 34 tau1_in = 0.010;
35 tau2_out_ = 0.0025; 35 tau2_out = 0.0025;
36 tau2_in_ = 0.005; 36 tau2_in = 0.005;
37 ac_corner_hz_ = 20.0; 37 ac_corner_hz = 20.0;
38 }; 38 };
39 bool just_half_wave_rectify_; 39 bool just_half_wave_rectify;
40 bool one_capacitor_; 40 bool one_capacitor;
41 FPType tau_lpf_; 41 FPType tau_lpf;
42 FPType tau1_out_; 42 FPType tau1_out;
43 FPType tau1_in_; 43 FPType tau1_in;
44 FPType tau2_out_; 44 FPType tau2_out;
45 FPType tau2_in_; 45 FPType tau2_in;
46 FPType ac_corner_hz_; 46 FPType ac_corner_hz;
47 }; 47 };
48 48
49 #endif 49 #endif // CARFAC_IHC_PARAMS_H