I have been trying to understand these 2 lines of code
SensorManager.getRotationMatrix(RTmp, I, grav, mag);
SensorManager.remapCoordinateSystem(RTmp, SensorManager.AXIS_X,SensorManager.AXIS_MINUS_Z, Rot);
I read the documentation of remapCoordinateSystem()
, however I am lost.
Can anyone explain to me what exactly getRotationMatrix
and remapCoordinateSystem
do? Specially the SensorManager.AXIS_X
, SensorManager.AXIS_MINUS_Z
?