Calculating change in value for CHOP data

Hi
Im building an interactive game using CHOP data from a kinect azure
I’m currently having trouble calculating change in value or total “distance traveled” during a set lenth of time.
Say a channel input goes from 1 to -2 and back to 1.
then the total change of value would be 6,
how can i configure a CHOP signal flow to give me that read out from a dynamic channel input?
Any help of info would be greatly appreciated

Hello,
My solution would be this one, with absolute value in function. So you derivate the value on time, eliminate the direction and add the successive values.

1 Like

Thank you! this worked great