-
Tue 2020.03.17
Hello @user110429,
Is the above snippet from this example perhaps? (last code snippet)
Maybe populate an array with each value read, then perform the comparrison calculation after it is known there won't be any more data?https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
If walking an array to extract a value is not your cup of tea, then there are 'Try it' examples at my favorite simple test site:
Would you mind posting some data output, and of course a made up example of how/what is desired to be viewed. That would assist us in providing some ideas.
Hi all,
I'm working on a project where I use the puck.js to keep track of reps based on the difference of the starting value returned by the magnetometer and the elevated value when users complete a rep.
Currently I'm using a hardcoded value for comparison, but I don't like this approach. I want to be able to either read the previous value obtained by the magnetometer or at least get some help with storing the value for later use.
Any help is much appreciated.