Closed BjarneBitscrambler closed 3 years ago
Found and fixed the error in the I2C read routine for the accelerometer - during the block read of the data registers, the register address had been wrapping back to 0x01, not 0x00 as I thought the documentation said.
Now the axes read approx +/-1.0 g when aligned up-down.
Initial testing with the Sensor Toolbox indicates that the scaling of the accelerometer outputs (all axes) is incorrect. For example, there is not a 2 g difference in readings between an axis that is pointing down and when it points up.
Have to check whether this is related to the initialization of the accelerometer, or in the scaling and corrections that happen during calibration, or during translation into the packet that is sent to the Toolbox.