frankzappa
Well-known member
I need help with a solution to a problem.
I want to store some calculations of sensor values (peaks etc.) for a period of time say 2 milliseconds and when that peak "expires" I want to store it in another variable that saves the value for another 5ms or so.
I need to compare values that ocurred in the last ~2ms to the values that ocurred in the ~5ms before that.
I have no clue how to do it.
I'm still kind of new to programming so in need of guidance.
I want to store some calculations of sensor values (peaks etc.) for a period of time say 2 milliseconds and when that peak "expires" I want to store it in another variable that saves the value for another 5ms or so.
I need to compare values that ocurred in the last ~2ms to the values that ocurred in the ~5ms before that.
I have no clue how to do it.
I'm still kind of new to programming so in need of guidance.