Wii acceleration data
Hi guys,
I have been reading the other posts about the Wii controller, but I still can't find out how to get certain things I want. For example, I want to get the average velocity from each plane (x, y, z) - this should be relatively simple (I think??)
S = s2 - s1
-----------
T = t2 - s1
I use the aka.wiiremote object, but I simply cannot get my head around how to make a sub-patch that takes one set of time values and subtracts the next set of timevalues in a meaningful way.
The wii of course also outputs a constant stream of numbers, so I'm finding it difficult to only take values when the Wii is not in movement (or close to not moving).
Any input would be much appreciated!
I hope this makes sense, it's been a while since I've been working with Max now! :)
I think that this should take a stream of
input data do what you wish. Save the attached
as an abstraction or drop it into a subpatch.
Since the technique for deriving acceleration
data consists of performing the same operations
a second time stream, this chunk of code obliginly
does that too.
That seems to do the trick!
Thank you Gregory!
Just wanted to bring this to peoples attention - this solved my moving average problem!
(You have to install ftm, but it works a treat!)
Tage