IMU data

Inquiry and support for Freematics products
Post Reply
nawaz
Posts: 11
Joined: Thu Apr 23, 2015 11:21 pm

IMU data

Post by nawaz »

Hello,

I have just been looking through the v3 datalogger sketch from github and was wondering why is the data from accelerometer, gyro and magnetometer right shifted before writing to the SD card like this,

Code: Select all

logData(PID_ACC, ax >> 4, ay >> 4, az >> 4)


A related question, how is the MPU axes (x, y, z) aligned with respect to the body of the adapter? Any thoughts?
Post Reply