Skip to content

Commit

Permalink
Remove ihc_state from carfac_design, as it's not used.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 549908713
  • Loading branch information
CARFAC Team authored and copybara-github committed Jul 21, 2023
1 parent 751ed5d commit 75970ea
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions matlab/CARFAC_Design.m
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,6 @@
'output_gain', 1 / (saturation_current - rest_current), ...
'rest_output', rest_current / (saturation_current - rest_current), ...
'rest_cap', cap_voltage);
% one-channel state for testing/verification:
IHC_state = struct( ...
'cap_voltage', IHC_coeffs.rest_cap, ...
'lpf1_state', 0, ...
'lpf2_state', 0, ...
'ihc_accum', 0);
else
g1max = CARFAC_Detect(10); % receptor conductance at high level
r1min = 1 / g1max;
Expand Down Expand Up @@ -488,12 +482,5 @@
'rest_output', rest_current2 / (saturation_current2 - rest_current2), ...
'rest_cap2', cap2_voltage, ...
'rest_cap1', cap1_voltage);
% one-channel state for testing/verification:
IHC_state = struct( ...
'cap1_voltage', IHC_coeffs.rest_cap1, ...
'cap2_voltage', IHC_coeffs.rest_cap2, ...
'lpf1_state', 0, ...
'lpf2_state', 0, ...
'ihc_accum', 0);
end
end

0 comments on commit 75970ea

Please sign in to comment.