PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches

IMU definitions shared by the motion sensor services. More...

Macros

#define PBL_MOUNT_MATRIX_MAP(xx, xy, xz, yx, yy, yz, zx, zy, zz)
 Sensor axis feeding each watch axis, from the rows of a devicetree mount-matrix.
 
#define PBL_MOUNT_MATRIX_DIR(xx, xy, xz, yx, yy, yz, zx, zy, zz)    {[AXIS_X] = (xx) + (xy) + (xz), [AXIS_Y] = (yx) + (yy) + (yz), [AXIS_Z] = (zx) + (zy) + (zz)}
 Direction of each watch axis, from the rows of a devicetree mount-matrix.
 

Enumerations

enum  IMUCoordinateAxis { AXIS_X = 0 , AXIS_Y = 1 , AXIS_Z = 2 }
 IMU coordinate axes, relative to the watch. More...
 

Detailed Description

IMU definitions shared by the motion sensor services.

Macro Definition Documentation

◆ PBL_MOUNT_MATRIX_DIR

#define PBL_MOUNT_MATRIX_DIR (   xx,
  xy,
  xz,
  yx,
  yy,
  yz,
  zx,
  zy,
  zz 
)     {[AXIS_X] = (xx) + (xy) + (xz), [AXIS_Y] = (yx) + (yy) + (yz), [AXIS_Z] = (zx) + (zy) + (zz)}

Direction of each watch axis, from the rows of a devicetree mount-matrix.

◆ PBL_MOUNT_MATRIX_MAP

#define PBL_MOUNT_MATRIX_MAP (   xx,
  xy,
  xz,
  yx,
  yy,
  yz,
  zx,
  zy,
  zz 
)
Value:
{[AXIS_X] = PBL_MOUNT_MATRIX_COL_(xx, xy, xz), \
[AXIS_Y] = PBL_MOUNT_MATRIX_COL_(yx, yy, yz), \
[AXIS_Z] = PBL_MOUNT_MATRIX_COL_(zx, zy, zz)}
@ AXIS_X
The positive direction along the X axis goes toward the right of the watch.
Definition units.h:16
@ AXIS_Y
The positive direction along the Y axis goes toward the top of the watch.
Definition units.h:18
@ AXIS_Z
The positive direction along the Z axis goes vertically out of the watchface.
Definition units.h:20

Sensor axis feeding each watch axis, from the rows of a devicetree mount-matrix.

Enumeration Type Documentation

◆ IMUCoordinateAxis

IMU coordinate axes, relative to the watch.

Enumerator
AXIS_X 

The positive direction along the X axis goes toward the right of the watch.

AXIS_Y 

The positive direction along the Y axis goes toward the top of the watch.

AXIS_Z 

The positive direction along the Z axis goes vertically out of the watchface.