01-10-2018 13:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-10-2018 13:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
In the Guide pages - https://dev.fitbit.com/build/guides/sensors/accelerometer/ it says
"...if the device is at rest, lying flat on a table, the acceleration along the Z axis should equal the acceleration of gravity (~9.8 m/s^2), and the acceleration along the X and Yaxes should be 0.
The accelerometer axes readings are provides as signed 16-bit integers, which range from -32,768 to 32,767."
How can the readings be 16-bit INTEGERS if they have decimal places!?
When I display the readings onscreen they clearly have decimal places, lots of them. I can clearly see accel.z equal to approx 9.8............. with lots of decimal places.
I'm in the middle of writing a logging app and was logging it to an Int16Array, I'm gonna now use a Float32Array.
Just wanted to flag this and double check.
Answered! Go to the Best Answer.

Accepted Solutions
01-16-2018 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-16-2018 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the feedback! Will get this updated.

01-16-2018 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-16-2018 14:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the feedback! Will get this updated.

