BrianC Posted December 8, 2020 Report Posted December 8, 2020 I am taking pressure values from a pump. I need to store the value every time I call a function (.7 seconds) and take the average of the last 7 values. I only care about getting a ~5 second average, then I can forget the numbers. I need to do this for several values, so something reusable would be great. I cannot seem to figure out an easy way to accomplish this. Any help is appreciated.
Ness Posted December 8, 2020 Report Posted December 8, 2020 Here's one way to get a running average. running average.ulpr
ssomin Posted September 14, 2021 Report Posted September 14, 2021 Hey can you please send the code one more, i would like to understand this for my university project.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now