Hi
In a list, how do I get the center value in a fast way?
I've got a sensor, but sometimes it sends incorrect values.
What I am thinking is to try 5 measures and take the central value. It's enough for me.
For example, if I get : 78, 84, 83, 0, 85, the central value is 83 (0-78-83-84-85)
Let say that values are in b0, b1, b2, b3 and b4.
How do I implement code to do this task?
Thanks
In a list, how do I get the center value in a fast way?
I've got a sensor, but sometimes it sends incorrect values.
What I am thinking is to try 5 measures and take the central value. It's enough for me.
For example, if I get : 78, 84, 83, 0, 85, the central value is 83 (0-78-83-84-85)
Let say that values are in b0, b1, b2, b3 and b4.
How do I implement code to do this task?
Thanks