10 years, 9 months ago.

ADXL345 rotate axis

Hi all,

For calculations in an earlier post I am getting the wrong values, the suspected reason for this is that one of the axis is pointing the wrong direction.

How would I change the value of the data in software to make it point the opposite direction?

For example:

X = Forward Y = Right Z = Up

to

X = Forward Y = Left Z = UP

1 Answer

10 years, 9 months ago.

Just multiply Y by -1, that should do the trick.