I am not really experienced in C-programming so I would need some help in how to programm something like this:
I am reading analog values from 8 FSR sensors (two force measuring plates) and calculating a floating average of the already to digital converted values. So far so good.
Further on I would like to calculate the average of the values which lay between an interval of zeros.
In the end all this is about to compare actual bodyweight of a person to how much of the body weight is actually brought up on the plates and not relieved over the handrails of the treadmill.
The interval of zeros (or very low values) shows the time between the two steps and i want to leave this out of the calculation. After the zeros there is the next step and i want the average, so the force, or weight, which occures in one step cycle (values before and after zeros). All this then should continue till the measurement is ended manually.
I hope i described it in a way someone can understand. I think the coding doesnt take that much effort but i just cant wrap my head around it.