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 average_signal_pulse is calculated incorrectly in the detectInput() function. The number of elements added by the loop is 30, but sum of those 30 elements is divided by 32.
The average_signal_pulse is calculated incorrectly in the detectInput() function. The number of elements added by the loop is 30, but sum of those 30 elements is divided by 32.
The loop is here:
AM32/Src/signal.c
Line 241 in 97f0d66
and the division is here:
AM32/Src/signal.c
Line 250 in 97f0d66
The fix is to change either the range being sampled (did you mean to say
instead?) or change the value it is dividing by (to 30).
The text was updated successfully, but these errors were encountered: