What data type of the x y z read from the accelerometer? I am trying to utilize the memory efficiently. Is 1 byte for each value enough?
Answered! Go to the Best Answer.
Best AnswerJavascript Number. One byte would probably be enough. You'll need to scale the values, taking into account the maximum acceleration that you expect. I've found that you can get 50+ m/s/s, although normal exercise is usually much less.
Javascript Number. One byte would probably be enough. You'll need to scale the values, taking into account the maximum acceleration that you expect. I've found that you can get 50+ m/s/s, although normal exercise is usually much less.