[2472946] Sensor.TYPE_ORIENTATION returns inverted roll values
update the documentation is sensors.h to reflect reality.
This commit is contained in:
parent
9e149fc6e1
commit
19ea59f865
1 changed files with 17 additions and 2 deletions
|
@ -138,7 +138,22 @@ __BEGIN_DECLS
|
|||
* the z-axis moves toward the y-axis.
|
||||
*
|
||||
* roll: Rotation around Y axis (-90<=roll<=90), with positive values when
|
||||
* the x-axis moves AWAY from the z-axis.
|
||||
* the x-axis moves towards the z-axis.
|
||||
*
|
||||
* Note: For historical reasons the roll angle is positive in the clockwise
|
||||
* direction (mathematically speaking, it should be positive in the
|
||||
* counter-clockwise direction):
|
||||
*
|
||||
* Z
|
||||
* ^
|
||||
* (+roll) .--> |
|
||||
* / |
|
||||
* | | roll: rotation around Y axis
|
||||
* X <-------(.)
|
||||
* Y
|
||||
* note that +Y == -roll
|
||||
*
|
||||
*
|
||||
*
|
||||
* Note: This definition is different from yaw, pitch and roll used in aviation
|
||||
* where the X axis is along the long side of the plane (tail to nose).
|
||||
|
|
Loading…
Reference in a new issue