I am trying to measure the accelerometer data over the calibrated sensor API on the XDK.
However, i can not find the docs to set the range for those sensor. It appears to only measure up to 2g.
Can someone tell me how to set the range?
Thanks a lot!
The accelerometer can measure 2G, 4G, 8G, and 16G. The bandwidth can range from 7.81, 15.6, 31.25...500, 1kHz (someone will have to correct me if I'm wrong about that, I recall reading it but I cannot find it now).
If you're using the MITA language, check the documentation for it here.
If you're not, then you'll have to figure out how to implement that in C. I am still learning that so I cannot help much further.
For MITA I think this would work for the range:
range = Range_16G;
Please find the docs and the source code to set the range for sensors
It would help you.