Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Pixart PAT9136 optical flow sensor. More...

Files

file  pat9136.h
 Header file for extended sensor API of PAT9136 sensor.

Enumerations

enum  sensor_channel_pat9136 { SENSOR_CHAN_POS_DX_MM = SENSOR_CHAN_PRIV_START + 1 , SENSOR_CHAN_POS_DY_MM , SENSOR_CHAN_POS_DXYZ_MM = SENSOR_CHAN_POS_DY_MM + 2 }
 Custom sensor channels for PAT9136. More...

Detailed Description

Pixart PAT9136 optical flow sensor.

Enumeration Type Documentation

◆ sensor_channel_pat9136

#include <zephyr/drivers/sensor/pat9136.h>

Custom sensor channels for PAT9136.

This sensor does have the ability to provide DXY in meaningful units, and since the standard channels' unit is in points (SENSOR_CHAN_POS_DX, SENSOR_CHAN_POS_DY, SENSOR_CHAN_POS_DXYZ), we've captured the following channels to provide an alternative for this sensor.

Enumerator
SENSOR_CHAN_POS_DX_MM 

Position change on the X axis, in millimeters.

SENSOR_CHAN_POS_DY_MM 

Position change on the Y axis, in millimeters.

SENSOR_CHAN_POS_DXYZ_MM 

Position change on the X, Y and Z axis, in millimeters.

Added additional offset so the channels X and Y can be accessed relative to XYZ in spite of not supporting DZ.