You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the state of the EMGFilters filters is stored in the global variables LPF, HPF and AHF. These being globals means that all instances of EMGFilters share their internal state.
#7
Open
allrobot opened this issue
Apr 19, 2022
· 1 comment
· May be fixed by #4
The problem is that the state of the EMGFilters filters is stored in the global variables LPF, HPF and AHF. These being globals means that all instances of EMGFilters share their internal state.
The filter state should be stored as instance data. Otherwise all instances effectively share the same filter.
@edgar-bonet Oh. I'm sorry. Because of your fix, I thought the problem was solved and closed it. It seems that I did not follow the Github rules. Now I re-open the issue.
The text was updated successfully, but these errors were encountered:
The problem is that the state of the
EMGFilters
filters is stored in the global variablesLPF
,HPF
andAHF
. These being globals means that all instances ofEMGFilters
share their internal state.The filter state should be stored as instance data. Otherwise all instances effectively share the same filter.
Originally posted by @edgar-bonet in #3 (comment)
@edgar-bonet Oh. I'm sorry. Because of your fix, I thought the problem was solved and closed it. It seems that I did not follow the Github rules. Now I re-open the issue.
The text was updated successfully, but these errors were encountered: